multi_fetch_fragments 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/multi_fetch_fragments.rb +3 -0
  2. metadata +3 -3
@@ -21,6 +21,9 @@ module MultiFetchFragments
21
21
  additional_cache_options = @options.fetch(:cache_options, {})
22
22
  keys_to_collection_map = {}
23
23
 
24
+ # clone the original collection so we can manipulate it without affecting the original
25
+ @collection = @collection.clone
26
+
24
27
  @collection.each do |item|
25
28
  key = @options[:cache].is_a?(Proc) ? @options[:cache].call(item) : item
26
29
  expanded_key = ActiveSupport::Cache.expand_cache_key(key)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 10
9
- version: 0.0.10
8
+ - 11
9
+ version: 0.0.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nathan Kontny
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-12-17 00:00:00 -06:00
17
+ date: 2012-12-21 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency