method

define_attribute

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: ActiveRecord::Locking::Optimistic::ClassMethods
define_attribute(name, cast_type, **) public

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 178
          def define_attribute(name, cast_type, **) # :nodoc:
            if lock_optimistically && name == locking_column
              cast_type = LockingType.new(cast_type)
            end
            super
          end
Register or log in to add new notes.