diff options
author | Nathaniel Bibler <git@nathanielbibler.com> | 2011-01-01 21:12:24 -0500 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-07 14:44:37 -0200 |
commit | 285fdbae2bafd5de415a685b57af36254197348c (patch) | |
tree | 587051bf3bee7836cae7cd3b1660eb742735f096 /activemodel/lib | |
parent | 7a774259010acec2a3b4c85e1a4b3289e4010ba8 (diff) | |
download | rails-285fdbae2bafd5de415a685b57af36254197348c.tar.gz rails-285fdbae2bafd5de415a685b57af36254197348c.tar.bz2 rails-285fdbae2bafd5de415a685b57af36254197348c.zip |
Fixed broken, memoized attributes method example
[#6245 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model/serialization.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/serialization.rb b/activemodel/lib/active_model/serialization.rb index f659419293..caf44a2ee0 100644 --- a/activemodel/lib/active_model/serialization.rb +++ b/activemodel/lib/active_model/serialization.rb @@ -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 |