Created
May 17, 2011 16:29
-
-
Save jlogsdon/976797 to your computer and use it in GitHub Desktop.
Basic PRY initializer for Rails 3
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
| begin | |
| require 'pry' | |
| module Rails | |
| class Console | |
| class IRB | |
| def self.start | |
| Pry.start | |
| end | |
| end | |
| end | |
| end | |
| rescue LoadError | |
| # The require will fail if the gem isn't loaded, IRB will still be used at this point. | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment