aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
Commit message (Collapse)AuthorAgeFilesLines
* application.rb: revises the comment for autoload_paths so that is assumes ↵Xavier Noria2010-07-091-3/+3
| | | | less from the user, and unifies punctuation
* Allow a PID file to be specified to rails server [#5031 state:resolved]Sudara2010-07-081-0/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Print proper "Usage:" messages for "rails plugin" commandAkira Matsuda2010-07-071-2/+10
| | | | | | | | | * suppress outputting "Unknown command:" when no command were specified * output the "Usage:" message when no plugin names were given [#5043 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* whitespaceAkira Matsuda2010-07-071-50/+47
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge remote branch 'docrails/master'Xavier Noria2010-07-072-2/+2
|\
| * Fixed typo in Rails::Generators::Base [#5051 state:resolved]Mark Hayes2010-07-061-1/+1
| |
| * Fixes README for generated apps with Rails 3 (rails *new* myapp, and Welcome ↵Jaime Iniesta2010-07-011-1/+1
| | | | | | | | aboard text)
* | ARGV.empty? is useless. If ARGV is empty, ARGV.first != "new" will always be ↵Madjo DIAPENA2010-07-041-1/+1
| | | | | | | | | | | | true Signed-off-by: José Valim <jose.valim@gmail.com>
* | reload_routes! was still referencing old Rails::Application.José Valim2010-07-021-6/+5
| |
* | Avoid calls to Rails::Application since this is not the official API.José Valim2010-07-019-21/+17
|/ | | | Your application should *always* reference your application const (as Blog::Application) and Rails.application should be used just internally.
* Change :notification to :notify (ht: m4n)José Valim2010-06-291-1/+1
|
* Create a deprecation behavior that triggers a notification for deprecation ↵wycats2010-06-293-0/+9
| | | | | | | | | | | | | | | | | notices, and make the behaviors independent of the environment names. * In Rails 2.3 apps being upgraded, you will need to add the deprecation configuration to each of your environments. Failing to do so will result in the same behavior as Rails 2.3, but with an outputted warning to provide information on how to set up the setting. * New Rails 3 applications generate the setting * The notification style will send deprecation notices using ActiveSupport::Notifications. Third-party tools can listen in to these notifications to provide a streamlined view of the deprecation notices occurring in your app. * The payload in the notification is the deprecation warning itself as well as the callstack from the point that triggered the notification.
* Make the sentinel flag for route a bit more robust.José Valim2010-06-281-1/+1
|
* Do not trigger the old mapper to avoid deprecation messages.José Valim2010-06-281-1/+1
|
* Update to latest rails.jsJeremy Kemper2010-06-271-57/+114
| | | | [#4411 state:resolved]
* A few changes were done in this commit:José Valim2010-06-286-47/+56
| | | | | | * Added :autoload to engines path API and redefine usage to be in sync with 6f83a5036d8a9c3f8ed7; * Do not autoload code in *lib* for applications (now you need to explicitly require them). This makes an application behave closer to an engine (code in lib is still autoloaded for plugins); * Always autoload code in app/ for engines and plugins. This makes engines behave closer to an application and should allow us to get rid of the unloadable hack required when controllers inside engines inherit from ApplicationController;
* Change the generated Gemfile to resolve, via documentation, the issue of ↵wycats2010-06-251-3/+4
| | | | rspec generators being unavailable in development mode
* Dont reload the environment, just not needed broDavid Heinemeier Hansson2010-06-241-2/+0
|
* Remove the --singeleton option from scaffold generator.Prem Sichanugrist2010-06-247-29/+3
| | | | | | | | It turned out to be that scaffold for singeleton resource will always depend on another model, and it's not possible at the moment to make the application tests pass after generate the singeleton scafold. So, it would be better to remove it for now and probably provide another generator, such as singeleton_scaffold, in which also require the depended model name. [#4863 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵José Valim2010-06-246-259/+14
| | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]
* Remove run_initializers from class methods.José Valim2010-06-241-8/+0
|
* Fix initializable testsJeremy Kemper2010-06-241-1/+1
|
* Move Collection responsibility from application to initializableJeremy Kemper2010-06-242-2/+2
|
* Speed up boot by tsorting as infrequently as possibleJeremy Kemper2010-06-242-8/+3
|
* renames load_(once_)paths to autoload_(once_)paths in dependencies and configXavier Noria2010-06-245-21/+21
|
* Patch for Namespace problem in Scaffold. [#4763 state:resolved]Mohammed Siddick.E2010-06-2312-60/+79
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Note that 'rails server' allows specifying mongrel, thin, etc [#4845 ↵Trevor Turk2010-06-221-1/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Rails Runner now sets $0 and $PROGRAM_NAME to name of file being run [#2244 ↵rohit2010-06-221-0/+1
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Changed `ruby /path/to/rails myapp --dev` to `ruby /path/to/rails new myapp ↵Jeff Kreeftmeijer2010-06-211-1/+1
| | | | | | --dev` in the "Thor is not avalable" message. [#4915 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Revert "files in the lib directory are no longer autoloaded"Xavier Noria2010-06-211-5/+1
| | | | | | | This patch is not consistent since it leaves similar directories in load_paths, needs more thought. This reverts commit b5fe014fdcc285f3bcb8779c4f7cfbc5a820856f.
* Alias app to build_middleware_stack for clarity.José Valim2010-06-212-1/+2
|
* Remove unused webrick_server file.José Valim2010-06-211-156/+0
|
* files in the lib directory are no longer autoloadedXavier Noria2010-06-211-1/+5
| | | | | | | | | | | Conceptually, the lib directory is closer 3rd party libraries than to the application itself. Thus, Rails adds it to Ruby's load path ($LOAD_PATH, $:) but it is no longer included in dependencies' load paths. To enable autoloading back put this in your config/application.rb config.load_paths += %W( #{config.root}/lib )
* Use the new ActiveSupport::FileUpdateChecker instead of RoutesReloader.José Valim2010-06-202-49/+10
|
* Improve documentation for add_lib_to_load_paths!José Valim2010-06-201-3/+16
|
* Added absolute path for config.ru as well. Turns out this is also needed to ↵Ryan Duryea2010-06-201-1/+2
| | | | | | | | fix the daemon issue under ruby 1.8.7 [#4531 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Pass rack the absolute path of server's pid fileRyan Duryea2010-06-201-1/+1
| | | | | | | | | When running as a daemon, rack will cd to "/" and paths relative to the root of the rails app aren't valid when rack is setting up. Because of this, "rails server -d" was failing silently when trying to write it's pid file Signed-off-by: José Valim <jose.valim@gmail.com>
* remove executable permission from files that don't need it. [#4802 ↵rohit2010-06-202-0/+0
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Strip trailing whitespace from generated applications [#4905 state:resolved]Chris Griego2010-06-205-8/+8
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make polymorphic_url and scaffolding work with uncountable resources [#3930 ↵Andrew White2010-06-206-5/+13
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge branch 'master' of github.com:rails/railsJosé Valim2010-06-201-24/+36
|\
| * Adds a few connection parameters for IBM databases.Antonio Cangiano2010-06-181-24/+36
| | | | | | | | | | | | [#3852] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Clear DescendantsTracker on each request.José Valim2010-06-191-0/+2
|/
* edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-145-5/+5
| | | | not "ActiveRecord"
* Tidy up generators based on latest change on AM.José Valim2010-06-131-1/+1
|
* Create mailers folder when starting a new rails appLawrence Curtis2010-06-121-0/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Support ruby 1.8.7 and 1.9.2 (and development versions)Jeremy Kemper2010-06-111-3/+17
|
* Single ruby version requirement messageJeremy Kemper2010-06-112-10/+5
|
* abort generation/booting on Ruby 1.9.1Xavier Noria2010-06-101-0/+6
|
* detect being inside a rails application even from a subdirectoryChad Fowler2010-06-102-19/+29
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>