Skip to content

Instantly share code, notes, and snippets.

@voidius
Last active August 29, 2015 14:08
Show Gist options
  • Save voidius/8b6bf0cc851549c69127 to your computer and use it in GitHub Desktop.
Save voidius/8b6bf0cc851549c69127 to your computer and use it in GitHub Desktop.
Reenable pry debugger on each request
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