method
define_attribute
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::TimeZoneConversion::ClassMethods
define_attribute(name, cast_type, **)public
No documentation available.
# File activerecord/lib/active_record/attribute_methods/time_zone_conversion.rb, line 71
def define_attribute(name, cast_type, **)
if create_time_zone_conversion_attribute?(name, cast_type)
cast_type = TimeZoneConverter.new(cast_type)
end
super
end