instance method
_touch_row
Ruby on Rails edge
Since v5.1.7 Private — implementation detail, not part of the public APISignature
_touch_row(attribute_names, time)
No documentation comment.
Parameters
-
attribute_namesreq -
timereq
Source
# File activerecord/lib/active_record/locking/optimistic.rb, line 113
def _touch_row(attribute_names, time)
if locking_enabled? && !_skip_locking_column_on_touch?
@_touch_attr_names << self.class.locking_column
end
super
ensure
@_skip_locking_column_on_touch = nil
end
Defined in activerecord/lib/active_record/locking/optimistic.rb line 113
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Locking::Optimistic