Created
October 4, 2012 08:32
-
-
Save swarut/3832264 to your computer and use it in GitHub Desktop.
Rails : Setting up Pry #rails #setup #pry
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
if defined?(Rails) && Rails.env | |
extend Rails::ConsoleMethods | |
end |
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
# place this file in initializers folder | |
MyApp::Application.configure do | |
# Use Pry instead of IRB | |
silence_warnings do | |
begin | |
require 'pry' | |
IRB = Pry | |
rescue LoadError | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment