method

destroy_row

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