Class: ActiveRecord::Store::StringKeyedHashAccessor

Inherits:
HashAccessor show all
Defined in:
activerecord/lib/active_record/store.rb

Overview

:nodoc:

Class Method Summary collapse

Methods inherited from HashAccessor

prepare

Class Method Details

.get(store_object, key) ⇒ Object



263
264
265
# File 'activerecord/lib/active_record/store.rb', line 263

def self.get(store_object, key)
  super store_object, Symbol === key ? key.name : key.to_s
end

.read(object, attribute, key) ⇒ Object



267
268
269
# File 'activerecord/lib/active_record/store.rb', line 267

def self.read(object, attribute, key)
  super object, attribute, Symbol === key ? key.name : key.to_s
end

.write(object, attribute, key, value) ⇒ Object



271
272
273
# File 'activerecord/lib/active_record/store.rb', line 271

def self.write(object, attribute, key, value)
  super object, attribute, Symbol === key ? key.name : key.to_s, value
end