aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/console.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix rails console --sandboxJon Leighton2013-03-081-1/+3
| | | | | | I've also added a proper acceptance test which reproduced the issue. Closes #9513, #9515.
* Rescue from LoadError when trying to load the debugger gem for consoleCarlos Antonio da Silva2013-01-061-1/+1
| | | | | | | | Avoid swallowing all exceptions that might happen when requiring debugger, just catch a LoadError if it cannot be loaded. Check for more background: https://github.com/rails/rails/commit/28fd867c9bc790636d37a28f288791cd0089a6fd#commitcomment-2386952
* Don't use Rails.root since it is not available at this pointRafael Mendonça França2013-01-051-1/+1
|
* Remove unnecessary begin..rescue..end, use only rescueCarlos Antonio da Silva2013-01-041-7/+5
|
* Move class method to instance in dbconsoleCarlos Antonio da Silva2013-01-041-0/+1
| | | | | This method doesn't need to be in the class, since it's only used only from the instance.
* This commit fixes issue #8628Mykola Kyryk2013-01-041-1/+10
| | | | | | | | | | | | Allow environment name to start with a substring of the default environment names. For example: tes, pro, prod, dev, devel, etc. Fixing identation. Adding test for Rails::Console.parse_arguments method. Fix issue 8628 for Rails::DBConsole.
* Add ENV['RACK_ENV'] support to rake runner/console/server.kennyj2012-12-061-1/+1
|
* Fix various bugs with console arguments.Sam Oliver2012-05-301-23/+25
| | | | Allow hyphens in environment names again.
* Fix `rails db -h` and cosmetic fixes in usage bannersAlexey Vakhov2012-05-221-1/+1
| | | | | | | Ruby tries to use '-h' as short version of '--header' by default https://github.com/ruby/ruby/blob/trunk/lib/optparse.rb#L1372-1381. To force `rails db -h` prints an usage message we should add the `-h` options explicitly.
* and one more timeAditya Sanghi2012-04-241-2/+2
|
* another attempt at the languageAditya Sanghi2012-04-181-1/+1
|
* stamp out ruby-debug19 with extreme prejudice :)Aditya Sanghi2012-04-171-3/+3
|
* match rails console environment support, to serverschneems2012-03-221-0/+13
| | | | rails server takes `-e` as an argument to specify RAILS_ENV, rails console currently does not have the same interface. This commit fixes this disparity so developers can manually specify `RAILS_ENV` or can pass in an environment with a `-e`.
* Refactor Rails::Console to make it easier to test and add tests for itPiotr Sarnacki2012-02-161-25/+46
|
* Allow to set custom console type with Rails.application.config.console=Piotr Sarnacki2012-02-161-2/+3
| | | | | | | | | | | | | This patch adds ability to set custom console if you want to use something other than IRB. Previously the hack that people used was: silence_warnings do require 'pry' IRB = Pry end which is not the best way to customize things.
* Remove console --irb deprecation noticePiotr Sarnacki2012-02-161-1/+0
|
* gem ruby-debug19 for console error if ruby-debug19 not foundVishnu Atrai2011-12-251-1/+1
|
* Extend IRB right before starting IRB to remove dependency on IRB from ↵Akira Matsuda2011-11-101-0/+2
| | | | Rails::Application
* Everyone receives app as argument for consistency.José Valim2011-05-251-1/+2
|
* Remove defined?(ActiveRecord) and use the railtie hook instead.José Valim2011-05-041-4/+0
|
* Fix console to accept [environment] [options] as specified in docs.Emilio Tagua2011-04-141-1/+1
|
* Moved Turn activation/dependency to railtiesDavid Heinemeier Hansson2011-03-311-1/+1
|
* Direct logging of Active Record to STDOUT so it's shown inline with the ↵David Heinemeier Hansson2011-03-311-0/+4
| | | | results in the console [DHH]
* "rails console t" must not load "production" but "test"Akira Matsuda2010-09-021-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add console hook to force ActiveRecord::Base to be loaded when console ↵José Valim2010-07-181-4/+1
| | | | starts avoiding reference loops.
* Add missing -h/--help flag to several rails command [#3909 status:resolved]Prem Sichanugrist2010-02-101-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* fix usage examples and more to use new invocationsRomD2010-02-061-1/+1
| | | | Signed-off-by: Carl Lerche <carllerche@mac.com>
* Move console stuff to its own directory.José Valim2010-01-231-4/+4
|
* Get everyone running on Rails.env and fix the broken environment settings ↵David Heinemeier Hansson2010-01-111-6/+5
| | | | for script/console and script/dbconsole
* Have to remove the environment name from ARGV or IRB will freak outDavid Heinemeier Hansson2010-01-091-1/+1
|
* Have script/* and Rakefile use the application objectCarlhuda2009-11-241-3/+7
|
* Use Rails.env after loading environmentJeremy Kemper2009-11-241-2/+2
|
* Add a dead --irb option mentioning upgrade pathJeremy Kemper2009-11-231-0/+1
|
* Set RAILS_ENV before loading config/environmentJeremy Kemper2009-11-231-10/+7
|
* Refactor script/console into an object and use IRB.start instead of calling ↵Carlhuda2009-11-231-39/+48
| | | | exec.
* Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the ↵Carl Lerche2009-10-161-1/+1
| | | | application's object root)
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-0/+45