From 285fdbae2bafd5de415a685b57af36254197348c Mon Sep 17 00:00:00 2001 From: Nathaniel Bibler Date: Sat, 1 Jan 2011 21:12:24 -0500 Subject: Fixed broken, memoized attributes method example [#6245 state:committed] Signed-off-by: Santiago Pastorino --- activemodel/lib/active_model/serialization.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activemodel') 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 -- cgit v1.2.3