aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/plugin
Commit message (Collapse)AuthorAgeFilesLines
* [Railties] require_relative => requireAkira Matsuda2017-10-211-2/+2
| | | | This basically reverts 618268b4b9382f4bcf004a945fe2d85c0bd03e32
* Adding frozen_string_literal pragma to Railties.Pat Allan2017-08-141-0/+2
|
* * Don't eagerly require Rails' minitest plugin.Kasper Timm Hansen2017-07-101-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | By making the Rails minitest behave like a standard minitest plugin we're much more likely to not break when people use other minitest plugins. Like minitest-focus and pride. To do this, we need to behave like minitest: require files up front and then perform the plugin behavior via the at_exit hook. This also saves us a fair bit of wrangling with test file loading. Finally, since the environment and warnings options have to be applied as early as possible, and since minitest loads plugins at_exit, they have to be moved to the test command. * Don't expect the root method. It's likely this worked because we eagerly loaded the Rails minitest plugin and that somehow defined a root method on `Rails`. * Assign a backtrace to failed exceptions. Otherwise Minitest pukes when attempting to filter the backtrace (which Rails' backtrace cleaner then removes). Means the exception message test has to be revised too. This is likely caused by the rails minitest plugin now being loaded for these tests and assigning a default backtrace cleaner.
* [Railties] require => require_relativeAkira Matsuda2017-07-011-1/+1
|
* Add wrapper for plugin's test runneryuuji.yaginuma2017-02-221-0/+7
| | | | | | | Currently, private API is directly used in `bin/test`. It is necessary to change `bin/test` when changing private API. To avoid this, provide a wrapper file and modify `bin/test` to just require that file.
* Refactor pluginsYehuda Katz + Carl Lerche2009-11-112-300/+0
|
* Remove some remnants of config.gemCarl Lerche2009-10-171-1/+1
|
* Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the ↵Carl Lerche2009-10-161-1/+1
| | | | application's object root)
* Changing plugin loader to use blocks instead of Symbol#to_proc to ensure ↵Jay Pignata2009-08-301-1/+3
| | | | | | | | tests run without activesupport [#3118 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* I18n support for pluginsAntonio Tapiador del Dujo2009-08-301-0/+7
| | | | | | | | | | Rails will now automatically add locale files found in any engine's locale directory to the I18n.load_path (i.e. files that match the glob pattern "config/locales/**/*.{rb,yml}" relative to engine directories). [#2325 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Get initializer_test.rb to pass with the new initializer.Yehuda Katz + Carl Lerche2009-06-231-2/+2
|
* Get Railties passing againYehuda Katz2009-05-162-7/+7
|
* Metal can now line in plugins under app/metal [#2045 state:committed]Matthew Rudy Jacobs2009-02-271-1/+4
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Force all internal calls to Array#to_sentence to use English [#2010 ↵David Heinemeier Hansson2009-02-271-1/+1
| | | | state:resolved]
* load plugin view_paths to action_mailer view_paths and make action_mailer ↵Sven Fuchs2009-02-221-24/+26
| | | | | | 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-1/+1
| | | | | | | | | 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]
* Merge docrailsPratik Naik2008-12-191-1/+1
|
* Added view path support for engines [DHH]David Heinemeier Hansson2008-11-271-10/+24
|
* Let all plugins not just engines have a config/routes.rb fileDavid Heinemeier Hansson2008-11-261-1/+2
|
* Added that config/routes.rb files in engine plugins are automatically loaded ↵David Heinemeier Hansson2008-11-261-1/+16
| | | | (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-3/+7
| | | | an app directory (go engines ;)) [DHH]
* Plugin locator: sort directory listing because we can't assume that the OS ↵Hongli Lai (Phusion2008-07-091-1/+1
| | | | will do it for us. This fixes some unit test failures.
* Fix discrepancies with loading rails/init.rb from gems. [#324 state:resolved]rick2008-06-081-3/+4
|
* Dependencies move to ActiveSupport::Dependencies missed a few spotsDavid Heinemeier Hansson2008-06-031-2/+2
|
* include bugfix to [e792d4ab70448f79142fdf492390682ff5ea6398] for rubygems ↵rick2008-05-061-2/+3
| | | | 1.0.1. Gem::DependencyList#dependency_order was bombing with nil specs passed in from a frozen gem. [#122]
* Added code to make initialization process call rails/init.rb for unpacked gemsPaul Barry2008-05-061-1/+2
|
* Allow files in plugins to be reloaded like the rest of the application. [rick]Rick Olson2008-03-311-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that no gems installed would cause error (closes #11459) [thechrisoshow]David Heinemeier Hansson2008-03-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9112 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that gems can now be plugins if they include rails/init.rb (closes ↵David Heinemeier Hansson2008-03-271-1/+20
| | | | | | #11444) [jbarnette] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix typos (closes #10378)David Heinemeier Hansson2007-12-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8301 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor Plugin Loader. Add plugin lib paths early, and add lots of tests. ↵Rick Olson2007-11-082-144/+167
| | | | | | Closes #9795 [lazyatom] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added symbols as a legal way of specifying plugins in config.plugins (closes ↵David Heinemeier Hansson2007-09-221-3/+3
| | | | | | #9629) [tom] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the :all option to config.plugins thatll include the rest of the ↵David Heinemeier Hansson2007-09-211-5/+28
| | | | | | plugins not already explicitly named (closes #9613) [fcheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7531 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move plugin classes into the rails directory to match their namespaceMarcel Molina2007-03-032-0/+182
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de