# File lib/active_record/attribute_methods/read.rb, line 69 def define_method_attribute(attr_name) generated_attribute_methods.module_eval "def __temp__\n\#{internal_attribute_access_code(attr_name, attribute_cast_code(attr_name))}\nend\nalias_method '\#{attr_name}', :__temp__\nundef_method :__temp__\n", __FILE__, __LINE__ + 1 end