method
define_attribute
v7.0.0 -
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 72
def define_attribute(name, cast_type, **)
if create_time_zone_conversion_attribute?(name, cast_type)
cast_type = TimeZoneConverter.new(cast_type)
end
super
end