aboutsummaryrefslogtreecommitdiff
path: root/app/serializers/hash_serializer.rb
blob: 5db639feea9259e71a7918fdd087d4bf77838d95 (plain)
1
2
3
4
5
6
7
8
9
class HashSerializer
  def self.dump(hash)
    hash.to_json
  end

  def self.load(hash)
    (hash || {}).with_indifferent_access
  end
end