method

attribute_missing

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::AttributeMethods

Method deprecated or moved

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

These similar methods exist in v7.1.3.2:

attribute_missing(match, *args, &block) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/attribute_methods.rb, line 159
    def attribute_missing(match, *args, &block) # :nodoc:
      if self.class.columns_hash[match.attr_name]
        ActiveSupport::Deprecation.warn(
          "The method `#{match.method_name}', matching the attribute `#{match.attr_name}' has "            "dispatched through method_missing. This shouldn't happen, because `#{match.attr_name}' "            "is a column of the table. If this error has happened through normal usage of Active "            "Record (rather than through your own code or external libraries), please report it as "            "a bug."
        )
      end

      super
    end
Register or log in to add new notes.