Module: ActiveRecord::AttributeMethods::TimeZoneConversion::ClassMethods
- Defined in:
- lib/active_record/attribute_methods/time_zone_conversion.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#define_attribute(name, cast_type) ⇒ Object
76 77 78 79 80 81 |
# File 'lib/active_record/attribute_methods/time_zone_conversion.rb', line 76 def define_attribute(name, cast_type, **) if create_time_zone_conversion_attribute?(name, cast_type) cast_type = TimeZoneConverter.new(cast_type) end super end |