diff options
author | Franck Verrot <franck@verrot.fr> | 2011-08-15 10:11:11 +0200 |
---|---|---|
committer | Franck Verrot <franck@verrot.fr> | 2012-03-28 00:42:59 +0200 |
commit | 4882271f6bae7bc8d91caf36cc8f16c7e6969b7b (patch) | |
tree | 9f3ce02cd6972790a1162699d8c854788fa80b9d /railties/lib/rails | |
parent | 33164c8f1479b826a044ab90f4cc2439666e4b16 (diff) | |
download | rails-4882271f6bae7bc8d91caf36cc8f16c7e6969b7b.tar.gz rails-4882271f6bae7bc8d91caf36cc8f16c7e6969b7b.tar.bz2 rails-4882271f6bae7bc8d91caf36cc8f16c7e6969b7b.zip |
Rails.initialized? can be called at any time without raising an exception [Closes #2507]
Changes:
* `Rails.initialized=` has been removed
* `Rails.initialized?` and `Rails.application.initialized?` are now
* delegating to `MyApp::Application.initialized?`
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/application.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index d7b8350963..fcb981bb9a 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -134,6 +134,10 @@ module Rails self end + def initialized? + @initialized + end + # Load the application and its railties tasks and invoke the registered hooks. # Check <tt>Rails::Railtie.rake_tasks</tt> for more info. def load_tasks(app=self) |