Skip to content

Commit

Permalink
debuggind #2
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomdmoura committed Jun 16, 2015
1 parent 0c73c96 commit 954ea9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/action_controller/serialization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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] }

Expand Down

0 comments on commit 954ea9d

Please sign in to comment.