method
initialize_attributes
v3.2.13 -
Show latest stable
- Class:
ActiveRecord::Locking::Optimistic::ClassMethods
initialize_attributes(attributes, options = {})public
If the locking column has no default value set, start the lock version at zero. Note we can’t use locking_enabled? at this point as @attributes may not have been initialized yet.