diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2012-05-27 12:28:26 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2012-05-27 14:26:13 +0200 |
commit | cf992fba95eb5d6282b0d04a52a3595f1c089512 (patch) | |
tree | da871952519128b90d593139da5bba8e0c6c998e /actionpack/test/ts_isolated.rb | |
parent | 4c34cb31fab087217a666a0dd7b1363128acd3a6 (diff) | |
download | rails-cf992fba95eb5d6282b0d04a52a3595f1c089512.tar.gz rails-cf992fba95eb5d6282b0d04a52a3595f1c089512.tar.bz2 rails-cf992fba95eb5d6282b0d04a52a3595f1c089512.zip |
Fix railties_order when application object is passed
railites_order method, introduced in 40b19e0, had a bug that was causing
loading application instance twice in initializers if railties_order
already included application instance. So for example
railties_order = [Foo::Engine, :main_app, Bar::Engine]
would result in such railties array:
[MyApp::Application, Foo::Engine, MyAppApplication, Bar::Engine]
In order to fix it, we need to check for existence of application in
both railties_order and railties arrays.
Diffstat (limited to 'actionpack/test/ts_isolated.rb')
0 files changed, 0 insertions, 0 deletions