lib/medea/jasondeferredquery.rb in medea-0.2.23 vs lib/medea/jasondeferredquery.rb in medea-0.2.24
- old
+ new
@@ -116,14 +116,14 @@
if k =~ /^[0-9]+$/
#this is a result! get the key
/\/([^\/]*)\/([^\/]*)$/.match result[k]["POST_TO"]
#$1 is the class name, $2 is the key
item = type.new($2, :lazy)
- if result[k].has_key? "CONTENT" && result[k]["CONTENT"] != ""
+ if result[k].has_key?("CONTENT") && result[k]["CONTENT"] != ""
item.instance_variable_set(:@__jason_data, result[k]["CONTENT"])
item.instance_variable_set(:@__jason_state, :stale)
end
- if result[k].has_key? "HTTP_X_PARENT" && result[k]["HTTP_X_PARENT"] != ""
+ if result[k].has_key?("HTTP_X_PARENT") && result[k]["HTTP_X_PARENT"] != ""
item.jason_parent_key = result[k]["HTTP_X_PARENT"]
end
self.contents << item
end
end