diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-06-21 16:56:40 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-06-21 16:56:40 -0500 |
commit | c3025e8d597bc17c9fae7c40413af4a98589a930 (patch) | |
tree | 0e4d817b9757e190e3426f507b1d16fb4e04e3cc /activemodel | |
parent | 95a938a5e69a0513a3666f5979be2460fa717885 (diff) | |
download | rails-c3025e8d597bc17c9fae7c40413af4a98589a930.tar.gz rails-c3025e8d597bc17c9fae7c40413af4a98589a930.tar.bz2 rails-c3025e8d597bc17c9fae7c40413af4a98589a930.zip |
add description to ActiveModel::MissingAttributeError [ci skip]
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/attribute_methods.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index a869991280..0b701e89dd 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -3,6 +3,7 @@ require 'active_support/core_ext/class/attribute' require 'active_support/deprecation' module ActiveModel + # Raised when an attribute is not defined. class MissingAttributeError < NoMethodError end # == Active Model Attribute Methods @@ -279,7 +280,7 @@ module ActiveModel attribute_method_matchers_cache.clear end - # Removes all the previously dynamically defined methods from the class + # Removes all the previously dynamically defined methods from the class. # # class Person # include ActiveModel::AttributeMethods |