Created
January 24, 2011 15:17
-
-
Save skojin/793355 to your computer and use it in GitHub Desktop.
same as config.consider_all_requests_local but for production and only for specified ip address, rails 3.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
silence_warnings do | |
ActionDispatch::Request::LOCALHOST = (ActionDispatch::Request::LOCALHOST + ['192.168.0.1']).freeze | |
end | |
ActionController::Base.module_eval do | |
def show_detailed_exceptions? | |
request.local? | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
put it to config/initializers/