Constants
BLACKLISTED_CLASS_METHODS = %w(private public protected allocate new name parent superclass)
AttrNames = Module.new {
def self.set_name_cache(name, value)
const_name = "ATTR_#{name}"
unless const_defined? const_name
const_set const_name, value.dup.freeze
end
end
}
Attributes
Show files where this module is defined (10 files)
activerecord/lib/active_record/attribute_methods/serialization.rb
activerecord/lib/active_record/attribute_methods/before_type_cast.rb
activerecord/lib/active_record/attribute_methods/primary_key.rb
activerecord/lib/active_record/attribute_methods/write.rb
activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb
activerecord/lib/active_record/attribute_methods/dirty.rb
activerecord/lib/active_record/attribute_methods/query.rb
activerecord/lib/active_record/attribute_methods/read.rb
activerecord/lib/active_record/attribute_methods.rb
activerecord/lib/active_record.rb