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

add method #touch methode to update the updated_at field if Mongoid::Timestamps.:Updated is include

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      A feature in ActiveRecord can be good to have in Mongoid is the #touch method. When you call it on one of your object, the updated_at field is update to now.

      This methode works only when Mongoid::Timestamps::Updated is include by himself or by Mongoid::Timestamps.

            Assignee:
            Unassigned Unassigned
            Reporter:
            shingara Cyril Mougel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: