Commit 6c664d94 authored by Mario Manno's avatar Mario Manno

re-add load balancer monkey patch to avoid trace page in production (rails3?)

parent 02db70fb
if Rails.env.production?
# Don't show trace pages in production! Requests shall never originate from localhost!
# see: http://helderribeiro.net/?p=357
class ActionDispatch::Request
def local?
false
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment