lib/hal_api/representer/caches.rb in hal_api-rails-0.2.1 vs lib/hal_api/representer/caches.rb in hal_api-rails-0.2.2

- old
+ new

@@ -11,9 +11,10 @@ def to_json(options={}) options[:to_] = :json super(options) end + # This isn't working, comment out this optimization # def create_representation_with(doc, options, format) # cache.fetch(cache_key(represented, options), cache_options) do # response = super(doc, options, format) # response = HalApi::Representer::Caches::SerializedJson.new(JSON.dump(response)) if (options[:to_] == :json) # response