lib/locomotive/steam/adapters/memory.rb in locomotivecms_steam-1.0.0.pre.beta.3 vs lib/locomotive/steam/adapters/memory.rb in locomotivecms_steam-1.0.0.rc1

- old
+ new

@@ -4,10 +4,15 @@ require_relative 'memory/query' require_relative 'memory/dataset' module Locomotive::Steam - class MemoryAdapter < Struct.new(:collection) + module Memory + end + + class MemoryAdapter + + attr_accessor_initialize :collection include Locomotive::Steam::Adapters::Concerns::Key def all(mapper, scope) memoized_dataset(mapper, scope)