Created
September 8, 2011 14:41
-
-
Save docwhat/1203563 to your computer and use it in GitHub Desktop.
Enable pry for `rails c`
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
# config/initializers/pry.rb | |
# | |
# Don't forget to add this to your Gemfile: | |
# gem 'pry', :group => [:development, :test] | |
# | |
begin | |
require 'pry' | |
module Rails | |
class Console | |
class IRB | |
def self.start | |
Pry.start | |
end | |
end | |
end | |
end | |
rescue LoadError | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment