method
inherited
v5.1.7 -
Show latest stable
- 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.