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

Model#touch on embedded documents not working

    • Type: Icon: Task Task
    • Resolution: Done
    • 3.0.0
    • Affects Version/s: None
    • Component/s: None

      model.touch on embedded documents not working, even not model.update("$set" =>

      { updated_at: Time.now }

      ) ... returns true but its not persisted..
      I had to do like model.update_attribute(:updated_at, Time.now())

            Assignee:
            durran Durran Jordan
            Reporter:
            vizo vizo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: