Defaulting parameters to false
I'm unclear how you are using dump = false and whether the method returns anything more than nil when params[:dump] is unassigned. If it doesn't, I would recommend the use of a guard clause:

def report
  return unless params[:dump]
  data = {}
  render :json =&gt; p(data)
end