method

inherited

Importance_1
v5.0.0.1 - Show latest stable - 0 notes - Class: ActiveRecord::Locking::Optimistic::ClassMethods
inherited(subclass) private

We need to apply this decorator here, rather than on module inclusion. The closure created by the matcher would otherwise evaluate for `ActiveRecord::Base`, not the sub class being decorated. As such, changes to `lock_optimistically`, or `locking_column` would not be picked up.

Show source
Register or log in to add new notes.