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

Test touch option on belongs_to

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

      We document here that the touch option can take a symbol which represents the field to touch. This is never found or tested in Mongoid:

      class Band
        include Mongoid::Document
        belongs_to :label, touch: :bands_updated_at
      end
      

            Assignee:
            adviti.mishra@mongodb.com Adviti Mishra (Inactive)
            Reporter:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: