aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-02-02 09:34:31 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-02-02 10:01:11 -0800
commit55686ae5c9d1bfd30006443b9fa83e4a016280a1 (patch)
tree942784ca28b419d6be6c2cb382408ef40fc44014
parenteb18260565bf3b271f2150b02dfadb4071a4f551 (diff)
downloadrails-55686ae5c9d1bfd30006443b9fa83e4a016280a1.tar.gz
rails-55686ae5c9d1bfd30006443b9fa83e4a016280a1.tar.bz2
rails-55686ae5c9d1bfd30006443b9fa83e4a016280a1.zip
removed whitespace errors :yellow_heart::blue_heart::purple_heart::heart::green_heart:
-rw-r--r--activerecord/lib/active_record/store.rb8
1 files 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