method

define_external_attribute_method

rails latest stable - Class: ActiveRecord::AttributeMethods::Read::ClassMethods

Method deprecated or moved

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

define_external_attribute_method(attr_name)
private

No documentation available.

# File activerecord/lib/active_record/attribute_methods/read.rb, line 81
          def define_external_attribute_method(attr_name)
            generated_external_attribute_methods.module_eval               def __temp__(v, attributes, attributes_cache, attr_name)                #{external_attribute_access_code(attr_name, attribute_cast_code(attr_name))}              end              alias_method '#{attr_name}', :__temp__              undef_method :__temp__, __FILE__, __LINE__ + 1
          end