aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/console.rb
Commit message (Collapse)AuthorAgeFilesLines
* applies new string literal convention in railties/libXavier Noria2016-08-061-5/+5
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* Fixes #25219Vipul A M2016-07-011-0/+12
| | | | Add handling of cleaning up backtrace from IRB console in case of errors
* Refactor railties console and dbconsole commandsMehmet Emin İNAÇ2015-05-101-25/+6
| | | | fix minor convention problems
* Revert "Merge pull request #19404 from dmathieu/remove_rack_env"Jeremy Kemper2015-03-201-1/+1
| | | | | | | Preserving RACK_ENV behavior. This reverts commit 7bdc7635b885e473f6a577264fd8efad1c02174f, reversing changes made to 45786be516e13d55a1fca9a4abaddd5781209103.
* don't fallback to RACK_ENV when RAILS_ENV is not presentDamien Mathieu2015-03-191-1/+1
|
* Use public Module#include, in favor of https://bugs.ruby-lang.org/issues/8846robertomiranda2015-01-311-1/+1
| | | | ref: https://github.com/rails/rails/pull/18763#issuecomment-72349769
* Remove debugger supportRafael Mendonça França2015-01-041-26/+0
| | | | | bebugger doesn't work with Ruby 2.2 so we don't need to support it anymore
* fix grammar [ci skip]Vijay Dev2014-08-221-1/+1
|
* Make text consistent in help text of rails server and console commands.Vijay Dev2014-08-211-4/+4
|
* Isolate debugger related codeDavid Rodríguez de Dios2014-04-101-11/+13
|
* Keep debugger support only for rubies < 2.0.0David Rodríguez de Dios2014-04-081-4/+14
|
* exit with non-zero to signal failureHrvoje Šimić2013-05-131-2/+2
|
* 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