method

define_method_attribute

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.1.0) is shown here.

define_method_attribute(attr_name)
protected

Defined for all datetime and timestamp attributes when time_zone_aware_attributes are enabled. This enhanced read method automatically converts the UTC time stored in the database to the time zone stored in Time.zone.