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.
- data/lib/cash/query/abstract.rb +7 -1
- metadata +1 -1
data/lib/cash/query/abstract.rb
CHANGED
@@ -129,7 +129,12 @@ module Cash
|
|
129
129
|
end
|
130
130
|
|
131
131
|
def serialize_objects(index, objects)
|
132
|
-
Array(objects).collect
|
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
|