aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-06-21 16:56:40 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-06-21 16:56:40 -0500
commitc3025e8d597bc17c9fae7c40413af4a98589a930 (patch)
tree0e4d817b9757e190e3426f507b1d16fb4e04e3cc /activemodel/lib/active_model
parent95a938a5e69a0513a3666f5979be2460fa717885 (diff)
downloadrails-c3025e8d597bc17c9fae7c40413af4a98589a930.tar.gz
rails-c3025e8d597bc17c9fae7c40413af4a98589a930.tar.bz2
rails-c3025e8d597bc17c9fae7c40413af4a98589a930.zip
add description to ActiveModel::MissingAttributeError [ci skip]
Diffstat (limited to 'activemodel/lib/active_model')
-rw-r--r--activemodel/lib/active_model/attribute_methods.rb3
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