-
-
Save rishiip/ab0462e52fe932398a6ff44aa6180e53 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 hidden or 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