module ActiveRecord::Store

def read_store_attribute(store_attribute, key)

def read_store_attribute(store_attribute, key)
  accessor = store_accessor_for(store_attribute)
  accessor.read(self, store_attribute, key)
end

def store_accessor_for(store_attribute)

def store_accessor_for(store_attribute)
  type_for_attribute(store_attribute.to_s).accessor
end

def write_store_attribute(store_attribute, key, value)

def write_store_attribute(store_attribute, key, value)
  accessor = store_accessor_for(store_attribute)
  accessor.write(self, store_attribute, key, value)
end