Skip to content

Instantly share code, notes, and snippets.

@sata
Created December 17, 2019 15:42
Show Gist options
  • Save sata/242c9e2b49defdcbe373f8813ae358b1 to your computer and use it in GitHub Desktop.
Save sata/242c9e2b49defdcbe373f8813ae358b1 to your computer and use it in GitHub Desktop.
debugging active resource entries
ActiveSupport::Notifications.subscribe('request.active_resource') do |name, start, finish, id, payload|
p "#{payload[:method]} #{payload[:request_uri]} => #{payload[:result].class.name}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment