Skip to content

Instantly share code, notes, and snippets.

@docwhat
Created September 8, 2011 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save docwhat/1203563 to your computer and use it in GitHub Desktop.
Save docwhat/1203563 to your computer and use it in GitHub Desktop.
Enable pry for `rails c`
# 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