Flowdock
method

destroy_row

Importance_0
v4.0.2 - Show latest stable - 0 notes - Class: ActiveRecord::Locking::Optimistic
destroy_row() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.