Closed ebertech closed 14 years ago
I think your solution makes sense. Would you mind packaging it up with a test and a patch?
Hi,
Here's the patch: http://gist.github.com/575682 Here's the patch to the spec: http://gist.github.com/575687
There's already a test in there that makes sure XHR requests aren't modified and this just makes all of the SQL panel tests send in :xhr => true. I reran the tests and they all pass.
Looks good. I'll get it applied after dinner. Thanks! Would you like to be credited as "ebertech" or another name?
Hi, ebertech is fine.
Applied in f15849bec3ebfe20eb28bd5b1ac161f74369a56d. Thanks.
noticed that profile, explain and select in the queries tab are broken. The reason is in bug.rb you've got a condition:
if toolbar_requested? && ip_authorized? && password_authorized? && !@original_request.xhr? @toolbar.call(env) else @app.call(env) end
but the requests are xhr requests so they get sent to the app and the app says 404. My solution is: