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



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