instance method
destroy_row
Ruby on Rails 4.0.13
Since v4.0.13 PrivateSignature
destroy_row()
No documentation comment.
Source
# File activerecord/lib/active_record/locking/optimistic.rb, line 104
def destroy_row
affected_rows = super
if locking_enabled? && affected_rows != 1
raise ActiveRecord::StaleObjectError.new(self, "destroy")
end
affected_rows
end
Defined in activerecord/lib/active_record/locking/optimistic.rb line 104
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Locking::Optimistic