Permalink
Browse files

Added a pry command to load rails.

  • Loading branch information...
1 parent cf1cec9 commit b4de3568cb5c6d1def94094df303a164af737cfe @panthomakos committed Jun 11, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 .pryrc
View
9 .pryrc
@@ -0,0 +1,9 @@
+Pry.config.commands.command('rails', 'Load the rails console.') do
+ env = File.join Dir.getwd, 'config', 'environment.rb'
+
+ if File.exists?(env)
+ require env
+ require 'rails/console/app'
+ require 'rails/console/helpers'
+ end
+end

0 comments on commit b4de356

Please sign in to comment.