Skip to content

Instantly share code, notes, and snippets.

@swarut
Created October 4, 2012 08:32
Show Gist options
  • Save swarut/3832264 to your computer and use it in GitHub Desktop.
Save swarut/3832264 to your computer and use it in GitHub Desktop.
Rails : Setting up Pry #rails #setup #pry
if defined?(Rails) && Rails.env
extend Rails::ConsoleMethods
end
# 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