Skip to content
Browse files

add description to ActiveModel::MissingAttributeError [ci skip]

  • Loading branch information...
1 parent 95a938a commit c3025e8d597bc17c9fae7c40413af4a98589a930 Francesco Rodriguez committed Jun 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 activemodel/lib/active_model/attribute_methods.rb
View
3 activemodel/lib/active_model/attribute_methods.rb
@@ -3,6 +3,7 @@
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 @@ def define_attribute_method(attr_name)
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

0 comments on commit c3025e8

Please sign in to comment.
Something went wrong with that request. Please try again.