Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-4979

Add :touch option to model save method

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0
    • Affects Version/s: None
    • Component/s: Persistence
    • None
    • Fully Compatible

      Ruby on Rails active_record has option {touch: false}, when record is saved to database, since version 5. https://blog.bigbinary.com/2016/05/09/rails-5-allows-updating-without-updating-timestamps.html

      I can not find if this (or similar) option is implemented in mongoid too. I can see that mongoid has options parameters implemented on save method, but it looks like they are ignored.

      Can you please implement this functionality.

      by
      TheR

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            d_rems@yahoo.com Damjan Rems
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: