Remove traces of Ruby
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
# Load plugins (only those I whitelist)
|
||||
Pry.config.should_load_plugins = false
|
||||
Pry.plugins["doc"].activate!
|
||||
|
||||
# Launch Pry with access to the entire Rails stack.
|
||||
# If you have Pry in your Gemfile, you can pass: ./script/console --irb=pry instead.
|
||||
# If you don't, you can load it through the lines below :)
|
||||
rails = File.join Dir.getwd, 'config', 'environment.rb'
|
||||
|
||||
if File.exist?(rails) && ENV['SKIP_RAILS'].nil?
|
||||
begin
|
||||
require rails
|
||||
rescue SystemExit
|
||||
raise "an attempt to load rails resulted in #{$!.class} call"
|
||||
end
|
||||
|
||||
if Rails.version[0..0] == "2"
|
||||
require 'console_app'
|
||||
require 'console_with_helpers'
|
||||
elsif Rails.version[0..0] == "3"
|
||||
require 'rails/console/app'
|
||||
require 'rails/console/helpers'
|
||||
else
|
||||
warn "[WARN] cannot load Rails console commands (Not on Rails2 or Rails3?)"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user