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



71
72
73
74
75
76
# File '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