Last active
August 29, 2015 14:08
-
-
Save voidius/8b6bf0cc851549c69127 to your computer and use it in GitHub Desktop.
Reenable pry debugger on each request
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
class ApplicationController < ActionController::Base | |
before_action :enable_pry if Rails.env.development? | |
private def enable_pry | |
ENV['DISABLE_PRY'] = nil | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment