aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/initializer_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* load plugin view_paths to action_mailer view_paths and make action_mailer ↵Sven Fuchs2009-02-221-2/+3
| | | | | | use them [#2031 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix loader's LoadError exception message to mention missing plugins and omit ↵Oshoma Momoh2009-02-131-0/+20
| | | | | | | | | loaded plugins. Prior to this change the LoadError message listed all plugins if any one of them was missing. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1921 state:committed]
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-212/+204
|
* fix failing railties testJoshua Peek2008-12-011-2/+2
|
* Changed Rails.root to return a Pathname object (allows for ↵David Heinemeier Hansson2008-11-301-2/+2
| | | | Rails.root.join("app", "controllers") => "#{RAILS_ROOT}/app/controllers") [#1482]
* Enhanced Rails.root to take parameters that'll be join with the root, like ↵David Heinemeier Hansson2008-11-291-0/+10
| | | | Rails.root('app', 'controllers') => File.join(Rails.root, 'app', 'controllers') [#1482 state:committed] (Damian Janowski)
* Added that config/routes.rb files in engine plugins are automatically loaded ↵David Heinemeier Hansson2008-11-261-0/+1
| | | | (and reloaded when they change in dev mode) [DHH]
* Added app/[models|controllers|helpers] to the load path for plugins that has ↵David Heinemeier Hansson2008-11-261-4/+4
| | | | an app directory (go engines ;)) [DHH]
* Explicitly require action_view to bring in its i18n load pathJeremy Kemper2008-11-241-0/+3
|
* Reflect default locale change from en-US to enJeremy Kemper2008-11-191-3/+3
|
* Added config.i18n settings gatherer to config/environment, auto-loading of ↵David Heinemeier Hansson2008-11-181-2/+47
| | | | all locales in config/locales/*.rb,yml, and config/locales/en.yml as a sample locale [DHH]
* Initializer to sort files before eager loading. [#859 state:resolved]Tom Ward2008-08-221-0/+18
| | | | | | | | Changed Rails::Initializer to sort files before eager loading them. This ensures that any files in a parent directory will be loaded before files in a subdirectory of the 'same' name. i.e. zoo.rb will be loaded before zoo/reptile_house.rb Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Check for ActionMailer and ActionController before attempting to eager load ↵Sam Granieri2008-07-241-1/+20
| | | | | | their view paths Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Make plugins initialize also from rails/init.rb to ensure consistency with ↵Jacek Becela2008-06-081-3/+3
| | | | | | gems used as plugins [#272 state:resolved]
* Wrap Initializer after_initialize inside mocha block.Joshua Peek2008-06-071-48/+48
|
* Fixed initializer tests by stubbing out gems dependencies check.Joshua Peek2008-06-021-16/+18
|
* Improving railties test coverage. Closes #11496 [miloops]Jeremy Kemper2008-04-011-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor Plugin Loader. Add plugin lib paths early, and add lots of tests. ↵Rick Olson2007-11-081-0/+81
| | | | | | Closes #9795 [lazyatom] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tidy up framework initialization code to ensure that it doesn't add folders ↵Michael Koziarski2007-10-041-0/+53
| | | | | | | | | to the load path that it doesn't intend to require. Work around mongrel swallowing LoadErrors to ensure that users get more helpful errors if active_resource is required but not missing. [mislav] Closes #9743 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix test (closes #9618)David Heinemeier Hansson2007-09-221-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7538 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support multiple config.after_initialize blocks so plugins and apps can more ↵Jeremy Kemper2007-09-181-7/+69
| | | | | | easily cooperate. Closes #9582. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Canonicalize configuration.root_path and replace RAILS_ROOT.Jeremy Kemper2007-03-291-15/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6488 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New configuration option config.plugin_paths which may be a single path like ↵Jeremy Kemper2005-11-071-12/+9
| | | | | | the default 'vendor/plugins' or an array of paths: ['vendor/plugins', 'lib/plugins']. Plugins are discovered in nested paths, so you can organize your plugins directory as you like. Refactor load_plugin from load_plugins. Simplify initializer unit test. Closes #2757. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2904 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Constants set in the development/test/production environment file are set in ↵Jamis Buck2005-10-231-0/+36
Object git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2711 5ecf4fe2-1ee6-0310-87b1-e25e094e27de