diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-21 10:49:15 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-05-21 10:49:15 +0000 |
commit | 2bccdba9d1403ce0010b0efa317376c01236440a (patch) | |
tree | 50431ff71a7ad24be3dd4cb12ad115be76eb28bf /railties/bin/console | |
parent | 997eb90c90ed43c5fa291a151f8848cb5758f467 (diff) | |
download | rails-2bccdba9d1403ce0010b0efa317376c01236440a.tar.gz rails-2bccdba9d1403ce0010b0efa317376c01236440a.tar.bz2 rails-2bccdba9d1403ce0010b0efa317376c01236440a.zip |
Made the console and profiler work with the default 1.8.2 profiler #1325 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1339 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/bin/console')
-rw-r--r-- | railties/bin/console | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/railties/bin/console b/railties/bin/console index 4ebcaa0b23..eece24a9ca 100644 --- a/railties/bin/console +++ b/railties/bin/console @@ -2,10 +2,9 @@ irb = RUBY_PLATFORM =~ /mswin32/ ? 'irb.bat' : 'irb' require 'optparse' -options = { :sandbox => false, :profile => false, :irb => irb } +options = { :sandbox => false, :irb => irb } OptionParser.new do |opt| opt.on('-s', '--sandbox', 'Rollback database modifications on exit.') { |options[:sandbox]| } - opt.on('--profile', 'Profile the session and print results on exit.') { |options[:profile]| } opt.on("--irb=[#{irb}]", 'Invoke a different irb.') { |options[:irb]| } opt.parse!(ARGV) end @@ -13,7 +12,6 @@ end libs = " -r irb/completion" libs << " -r #{File.dirname(__FILE__)}/../config/environment" libs << " -r console_sandbox" if options[:sandbox] -libs << " -r console_profile" if options[:profile] ENV['RAILS_ENV'] = ARGV.first || 'development' if options[:sandbox] |