Skip to content

Instantly share code, notes, and snippets.

@jlogsdon
Created May 17, 2011 16:29
Show Gist options
  • Select an option

  • Save jlogsdon/976797 to your computer and use it in GitHub Desktop.

Select an option

Save jlogsdon/976797 to your computer and use it in GitHub Desktop.
Basic PRY initializer for Rails 3
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