Flowdock
method

attribute_missing

Importance_0
v3.2.1 - Show latest stable - 0 notes - Class: ActiveRecord::AttributeMethods
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 130
    def attribute_missing(match, *args, &block)
      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.