lib/locomotive/steam/adapters/memory.rb in locomotivecms_steam-1.4.1 vs lib/locomotive/steam/adapters/memory.rb in locomotivecms_steam-1.5.0.beta1
- old
+ new
@@ -37,10 +37,10 @@
Locomotive::Steam::Adapters::Memory::Query.new(all(mapper, scope), scope.locale, &block)
end
def memoized_dataset(mapper, scope)
return @dataset if @dataset
- dataset(mapper, scope)
+ @dataset = dataset(mapper, scope)
end
def dataset(mapper, scope)
Locomotive::Steam::Adapters::Memory::Dataset.new(mapper.name).tap do |dataset|
collection.each do |attributes|