seifertd-cache-money 0.2.7.2 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/cash/query/abstract.rb +7 -1
  2. metadata +1 -1
@@ -129,7 +129,12 @@ module Cash
129
129
  end
130
130
 
131
131
  def serialize_objects(index, objects)
132
- Array(objects).collect { |missed| index.serialize_object(missed) }
132
+ Array(objects).collect do |missed|
133
+ # Allow object to add stuff before caching. This is
134
+ # a good way to precache child objects
135
+ missed.resolve_miss if missed.respond_to?(:resolve_miss)
136
+ index.serialize_object(missed)
137
+ end
133
138
  end
134
139
 
135
140
  def convert_to_array(cache_keys, object)
@@ -164,6 +169,7 @@ module Cash
164
169
  end
165
170
  vals
166
171
  end
172
+
167
173
  end
168
174
  end
169
175
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seifertd-cache-money
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7.2
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Kallen