lib/wcc/contentful/store/base.rb in wcc-contentful-1.3.2 vs lib/wcc/contentful/store/base.rb in wcc-contentful-1.4.0.rc1

- old
+ new

@@ -15,10 +15,14 @@ # tests for the store. See spec/wcc/contentful/store/memory_store_spec.rb for # an example. class Base include WCC::Contentful::Store::Interface + def initialize(configuration = nil) + @configuration = configuration || WCC::Contentful.configuration + end + # Sets the value of the entry with the given ID in the store. # @abstract def set(_id, _value) raise NotImplementedError, "#{self.class} does not implement #set" end @@ -101,10 +105,11 @@ # @return [Query] A query object that exposes methods to apply filters def find_all(content_type:, options: nil) Query.new( self, content_type: content_type, - options: options + options: options, + configuration: @configuration ) end def ensure_hash(val) raise ArgumentError, 'Value must be a Hash' unless val.is_a?(Hash)