method

find_generated_attribute_method

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

Method deprecated or moved

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

find_generated_attribute_method(method_name)
public

No documentation available.

# File activerecord/lib/active_record/attribute_methods.rb, line 158
      def find_generated_attribute_method(method_name) # :nodoc:
        klass = self
        until klass == Base
          gen_methods = klass.generated_attribute_methods
          return gen_methods.instance_method(method_name) if method_defined_within?(method_name, gen_methods, Object)
          klass = klass.superclass
        end
        nil
      end