Show error traces in production in Rails 3.1
I wanted to be able to see error traces in the browser when I'm the one visiting.
Here's my hack, dropped into
Here's my hack, dropped into
config/initalizers/
if Rails.env == 'production'
class ActionDispatch::Request
def local?
App.developer_ips.include?(remote_ip)
end
end
end
App.developer_ips
is an array of IP addresses that I typically work from.

About Calvin Correli
I've spent the last 17 years learning, growing, healing, and discovering who I truly am, so that I'm now living every day aligned with my life's purpose.
Learn, grow, heal, and discover your life's purpose
Join my free newsletter
No spam. Just timeless insights and ideas.
0 comments
Leave a comment