提交 c3025e8d 编写于 作者: F Francesco Rodriguez

add description to ActiveModel::MissingAttributeError [ci skip]

上级 95a938a5
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册