Skip to content

Commit

Permalink
Use class_attribute and not config_attribute.
Browse files Browse the repository at this point in the history
Also require the needed files.
  • Loading branch information
tilsammans committed May 15, 2012
1 parent 1e5b10f commit 3ff1102
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion activerecord/lib/active_record/store.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
require 'active_support/concern'
require 'active_support/core_ext/class/attribute'

module ActiveRecord
# Store gives you a thin wrapper around serialize for the purpose of storing hashes in a single column.
# It's like a simple key/value store backed into your record when you don't care about being able to
Expand Down Expand Up @@ -38,7 +41,7 @@ module Store
extend ActiveSupport::Concern

included do
config_attribute :stored_attributes
class_attribute :stored_attributes
self.stored_attributes = {}
end

Expand Down

0 comments on commit 3ff1102

Please sign in to comment.