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

Add :touch option to model save method

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Persistence
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ther Damjan Rems
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: