example/rails3/app/controllers/application_controller.rb in rest-graph-1.9.1 vs example/rails3/app/controllers/application_controller.rb in rest-graph-2.0.0

- old
+ new

@@ -47,16 +47,25 @@ def error raise RestGraph::Error.new("don't rescue me") end def reinitialize - cache_nil = rest_graph.cache rest_graph_setup(:cache => {'a' => 'b'}) - cache = rest_graph.cache - render :text => YAML.dump([cache_nil, cache]) + render :text => YAML.dump(rest_graph.cache) end def helper; end + + def defaults + rest_graph_setup + render :text => (rest_graph.cache == Rails.cache && + rest_graph.log_method.receiver == Rails.logger) + end + + def parse_cookies + rest_graph_setup + render :text => 'dummy' + end private def filter_common rest_graph_setup(:auto_authorize => true, :canvas => '') end