method

touch_record

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: HasOne
touch_record(o, name, touch) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/builder/has_one.rb, line 35
    def self.touch_record(o, name, touch)
      record = o.send name

      return unless record && record.persisted?

      if touch != true
        record.touch(touch)
      else
        record.touch
      end
    end
Register or log in to add new notes.