aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/attribute_methods.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activemodel/lib/active_model/attribute_methods.rb')
-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