提交 285fdbae 编写于 作者: N Nathaniel Bibler 提交者: Santiago Pastorino

Fixed broken, memoized attributes method example

[#6245 state:committed]
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
上级 7a774259
......@@ -15,7 +15,7 @@ module ActiveModel
# attr_accessor :name
#
# def attributes
# @attributes ||= {'name' => nil}
# {'name' => name}
# end
#
# end
......@@ -45,7 +45,7 @@ module ActiveModel
# attr_accessor :name
#
# def attributes
# @attributes ||= {'name' => nil}
# {'name' => name}
# end
#
# end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册