lib/medea/jasondeferredquery.rb in medea-0.6.5 vs lib/medea/jasondeferredquery.rb in medea-0.6.6
- old
+ new
@@ -151,9 +151,12 @@
item.instance_variable_set(:@__jason_state, :stale)
end
if result[k].has_key?("HTTP_X_PARENT") && result[k]["HTTP_X_PARENT"] != ""
item.jason_parent_key = result[k]["HTTP_X_PARENT"]
end
+ if result[k].has_key?("TIMESTAMP")
+ item.instance_variable_set :@__jason_timestamp, result[k]["TIMESTAMP"]
+ end
self.contents << item
end
end
self.state = :postfetch