Avoid repeating yourself, use pry-rails instead of copying the initializer to every rails project.
This is a small gem which causes rails console
to open pry. It therefore depends on pry.
- A Rails >= 3.0 Application
Add this line to your gemfile:
gem 'pry-rails', :group => :development
bundle install
and enjoy pry.
If you want to enable pry everywhere, make sure to check out pry everywhere.