Flowdock
method

inherited

Importance_1
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveRecord::Locking::Optimistic::ClassMethods

Method not available on this version

This method is only available on newer versions. The first available version of the method is shown here.

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.