rweng/pry-rails — pull request #10 by scottwater (2012-01-27 16:40:32+00:00)
Title: Add Rails methods back to pry-rails

This pull request will enable methods like reload! to work again in pry-rails with Rails 3.2.

Injecting the Rails::ConsoleMethods into Object isn't ideal (it is exactly what rails changed), but I don't see a cleaner Pry specific way.

I also added a check to make sure this was only done with Rails 3.2+. Might want to add a gem dependency so only users with Rails 3.2 actually get this change.