From 954ea9d3f1568a241f8d338d3f4037af529aa2df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Tue, 16 Jun 2015 11:24:02 -0300 Subject: [PATCH] debuggind #2 --- lib/action_controller/serialization.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/action_controller/serialization.rb b/lib/action_controller/serialization.rb index a1eb6e2b9..c467a2277 100644 --- a/lib/action_controller/serialization.rb +++ b/lib/action_controller/serialization.rb @@ -35,9 +35,12 @@ def use_adapter? [:_render_option_json, :_render_with_renderer_json].each do |renderer_method| define_method renderer_method do |resource, options| + p '========================================================' p 'resource' p resource p resource.class.name.downcase + p '========================================================' + binding.pry @_adapter_opts, @_serializer_opts = options.partition { |k, _| ADAPTER_OPTION_KEYS.include? k }.map { |h| Hash[h] }