watermarkchurch / wcc-contentful

An alternative to Contentful's contentful.rb ruby client, contentful_model, and contentful_rails gems all in one.
MIT License
2 stars 1 forks source link

Hash for MemoryStore should use `with_indifferent_access` to allow symbols and strings as keys #70

Closed reidcooper closed 4 years ago

reidcooper commented 6 years ago

When using the in-memory store, I am running into problems where the Delayed Job is expecting to locate a key by string, where the in-memory store, stores the keys as symbols.

module WCC::Contentful::Store
  class MemoryStore < Base
    def initialize
      super
      @hash = {}.with_indifferent_access
    end