Jeremy Kemper
278186534c
Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.
2009-02-03 18:40:22 -08:00
Joshua Peek
725928854d
fix failing railties test
2008-12-01 12:12:57 -06:00
David Heinemeier Hansson
be140e8c6b
Changed Rails.root to return a Pathname object (allows for Rails.root.join("app", "controllers") => "#{RAILS_ROOT}/app/controllers") [ #1482 ]
2008-11-30 15:59:30 -06:00
David Heinemeier Hansson
fdfcdf4673
Enhanced Rails.root to take parameters that'll be join with the root, like Rails.root('app', 'controllers') => File.join(Rails.root, 'app', 'controllers') [ #1482 state:committed] (Damian Janowski)
2008-11-29 10:57:36 +01:00
David Heinemeier Hansson
4999d52e08
Added that config/routes.rb files in engine plugins are automatically loaded (and reloaded when they change in dev mode) [DHH]
2008-11-26 20:03:25 +01:00
David Heinemeier Hansson
63d8f56774
Added app/[models|controllers|helpers] to the load path for plugins that has an app directory (go engines ;)) [DHH]
2008-11-26 14:41:20 +01:00
Jeremy Kemper
d40bc307f9
Explicitly require action_view to bring in its i18n load path
2008-11-24 21:47:09 -08:00
Jeremy Kemper
549388c244
Reflect default locale change from en-US to en
2008-11-19 12:22:06 -08:00
David Heinemeier Hansson
d9b92ee11b
Added config.i18n settings gatherer to config/environment, auto-loading of all locales in config/locales/*.rb,yml, and config/locales/en.yml as a sample locale [DHH]
2008-11-18 14:23:13 +01:00
Tom Ward
89d1c77dd0
Initializer to sort files before eager loading. [ #859 state:resolved]
...
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>
2008-08-22 13:06:34 +01:00
Sam Granieri
11fdcf88c2
Check for ActionMailer and ActionController before attempting to eager load their view paths
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-07-24 13:51:54 -05:00
Jacek Becela
86a042ddd9
Make plugins initialize also from rails/init.rb to ensure consistency with gems used as plugins
...
[#272 state:resolved]
2008-06-08 13:05:45 -04:00
Joshua Peek
06b6f435cb
Wrap Initializer after_initialize inside mocha block.
2008-06-07 23:46:06 -05:00
Joshua Peek
714d42d1a6
Fixed initializer tests by stubbing out gems dependencies check.
2008-06-02 10:40:01 -05:00
Jeremy Kemper
8f46ead1e9
Improving railties test coverage. Closes #11496 [miloops]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-04-01 16:54:30 +00:00
Jeremy Kemper
dbed69249f
require abstract_unit directly since test is in load path
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8568 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2008-01-05 13:33:00 +00:00
Rick Olson
f1b1af88b5
Refactor Plugin Loader. Add plugin lib paths early, and add lots of tests. Closes #9795 [lazyatom]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-11-08 05:29:44 +00:00
Michael Koziarski
41bfedeac2
Tidy up framework initialization code to ensure that it doesn't add folders 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
2007-10-04 04:16:06 +00:00
David Heinemeier Hansson
94d7633005
Fix test ( closes #9618 )
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7538 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-22 14:27:24 +00:00
Jeremy Kemper
4f375d5b82
Support multiple config.after_initialize blocks so plugins and apps can more easily cooperate. Closes #9582 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7507 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-09-18 01:45:37 +00:00
Jeremy Kemper
29d63a04ac
Canonicalize configuration.root_path and replace RAILS_ROOT.
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6488 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-03-29 05:44:44 +00:00
Jeremy Kemper
6c434e8b8e
New configuration option config.plugin_paths which may be a single path like 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
2005-11-07 08:09:38 +00:00
Jamis Buck
cdd49c5360
Constants set in the development/test/production environment file are set in Object
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2711 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-23 13:39:24 +00:00