instance method generated_external_attribute_methods

Ruby on Rails 3.2.22.5

Since v3.2.22.5 Last seen in v3.2.22.5

Signature

generated_external_attribute_methods()

We will define the methods as instance methods, but will call them as singleton methods. This allows us to use method_defined? to check if the method exists, which is fast and won’t give any false positives from the ancestors (because there are no ancestors).

Source
# File activerecord/lib/active_record/attribute_methods.rb, line 80
      def generated_external_attribute_methods
        @generated_external_attribute_methods ||= Module.new { extend self }
      end

Defined in activerecord/lib/active_record/attribute_methods.rb line 80 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::AttributeMethods::ClassMethods

Type at least 2 characters to search.

↑↓ navigate · open · esc close