method

_lock_value_for_database

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: ActiveRecord::Locking::Optimistic
_lock_value_for_database(locking_column) 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 136
        def _lock_value_for_database(locking_column)
          if will_save_change_to_attribute?(locking_column)
            @attributes[locking_column].value_for_database
          else
            @attributes[locking_column].original_value_for_database
          end
        end
Register or log in to add new notes.