Skip to content

Commit

Permalink
add description to ActiveModel::MissingAttributeError [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Rodriguez committed Jun 21, 2012
1 parent 95a938a commit c3025e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion activemodel/lib/active_model/attribute_methods.rb
Expand Up @@ -3,6 +3,7 @@
require 'active_support/deprecation' require 'active_support/deprecation'


module ActiveModel module ActiveModel
# Raised when an attribute is not defined.
class MissingAttributeError < NoMethodError class MissingAttributeError < NoMethodError
end end
# == Active Model Attribute Methods # == Active Model Attribute Methods
Expand Down Expand Up @@ -279,7 +280,7 @@ def define_attribute_method(attr_name)
attribute_method_matchers_cache.clear attribute_method_matchers_cache.clear
end end


# Removes all the previously dynamically defined methods from the class # Removes all the previously dynamically defined methods from the class.
# #
# class Person # class Person
# include ActiveModel::AttributeMethods # include ActiveModel::AttributeMethods
Expand Down

0 comments on commit c3025e8

Please sign in to comment.