method

touch_record

touch_record(record, name, touch)
public

No documentation available.

# File activerecord/lib/active_record/associations/builder/has_one.rb, line 37
    def self.touch_record(record, name, touch)
      instance = record.send(name)

      if instance&.persisted?
        touch != true ?
          instance.touch(touch) : instance.touch
      end
    end