Skip to content
Browse files

removed whitespace errors :yellow_heart::blue_heart::purple_heart::heart::green_heart:

  • Loading branch information...
1 parent eb18260 commit 55686ae5c9d1bfd30006443b9fa83e4a016280a1 @tenderlove tenderlove committed Feb 2, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/lib/active_record/store.rb
View
8 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,12 +39,12 @@ def store_accessor(store_attribute, *keys)
send(store_attribute)[key] = value
send("#{store_attribute}_will_change!")
end
-
+
define_method(key) do
send(store_attribute)[key]
end
end
end
end
end
-end
+end

0 comments on commit 55686ae

Please sign in to comment.
Something went wrong with that request. Please try again.