Method: ActiveRecord::TouchLater#touch

Defined in:
lib/active_record/touch_later.rb

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

:nodoc:



34
35
36
37
38
39
40
41
42
# File 'lib/active_record/touch_later.rb', line 34

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