Method: ActiveRecord::Store::HashAccessor.prepare

Defined in:
lib/active_record/store.rb

.prepare(object, attribute) ⇒ Object



234
235
236
# File 'lib/active_record/store.rb', line 234

def self.prepare(object, attribute)
  object.public_send :"#{attribute}=", {} unless object.send(attribute)
end