Skip to content

Instantly share code, notes, and snippets.

@voidius
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save voidius/8b6bf0cc851549c69127 to your computer and use it in GitHub Desktop.

Select an option

Save voidius/8b6bf0cc851549c69127 to your computer and use it in GitHub Desktop.

Revisions

  1. voidius renamed this gist Oct 30, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. voidius created this gist Oct 30, 2014.
    7 changes: 7 additions & 0 deletions Reenable pry debugger on each request
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    class ApplicationController < ActionController::Base
    before_action :enable_pry if Rails.env.development?

    private def enable_pry
    ENV['DISABLE_PRY'] = nil
    end
    end