Method: ActiveRecord::TouchLater#touch

Defined in:
activerecord/lib/active_record/touch_later.rb

#touch(*names, time: nil) ⇒ Object

:nodoc:



38
39
40
41
42
43
44
45
46
# File 'activerecord/lib/active_record/touch_later.rb', line 38

def touch(*names, time: nil) # :nodoc:
  if has_defer_touch_attrs?
    names |= @_defer_touch_attrs
    super(*names, time: time)
    @_defer_touch_attrs, @_touch_time = nil, nil
  else
    super
  end
end