method
destroy_row
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::Locking::Optimistic
destroy_row()private
No documentation available.
# File activerecord/lib/active_record/locking/optimistic.rb, line 124
def destroy_row
affected_rows = super
if locking_enabled? && affected_rows != 1
raise ActiveRecord::StaleObjectError.new(self, "destroy")
end
affected_rows
end