From 55686ae5c9d1bfd30006443b9fa83e4a016280a1 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 2 Feb 2012 09:34:31 -0800 Subject: removed whitespace errors :yellow_heart::blue_heart::purple_heart::heart::green_heart: --- activerecord/lib/active_record/store.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activerecord/lib/active_record/store.rb b/activerecord/lib/active_record/store.rb index 8cc84f81d0..049fbc3634 100644 --- a/activerecord/lib/active_record/store.rb +++ b/activerecord/lib/active_record/store.rb @@ -15,7 +15,7 @@ module ActiveRecord # class User < ActiveRecord::Base # store :settings, accessors: [ :color, :homepage ] # end - # + # # u = User.new(color: 'black', homepage: '37signals.com') # u.color # Accessor stored attribute # u.settings[:country] = 'Denmark' # Any attribute, even if not specified with an accessor @@ -26,7 +26,7 @@ module ActiveRecord # end module Store extend ActiveSupport::Concern - + module ClassMethods def store(store_attribute, options = {}) serialize store_attribute, Hash @@ -39,7 +39,7 @@ module ActiveRecord send(store_attribute)[key] = value send("#{store_attribute}_will_change!") end - + define_method(key) do send(store_attribute)[key] end @@ -47,4 +47,4 @@ module ActiveRecord end end end -end \ No newline at end of file +end -- cgit v1.2.3