Class: Serializers::Activerecord::HashWithIndifferentAccess

Inherits:
Object
  • Object
show all
Defined in:
lib/serializers/activerecord/hash_with_indifferent_access.rb

Class Method Summary collapse

Class Method Details

.dump(hash) ⇒ Object



4
5
6
# File 'lib/serializers/activerecord/hash_with_indifferent_access.rb', line 4

def self.dump(hash)
  hash
end

.load(hash) ⇒ Object



8
9
10
# File 'lib/serializers/activerecord/hash_with_indifferent_access.rb', line 8

def self.load(hash)
  (hash ? hash : {}).with_indifferent_access
end