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

Support for the :touch option in relations

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      This pull request add the Document#touch method with params to define which field you want touch. And the :touch option in belongs_to association to touch parent document if child document is touch.

      This change is compatible to ActiveRecord API about touch (http://apidock.com/rails/ActiveRecord/Persistence/touch )

      Can fix MONGOID-1799

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: