Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Rails.initialized? causes exception when Rails is not initialized #2507

Closed
stevecj opened this Issue Aug 12, 2011 · 0 comments

Comments

Projects
None yet
2 participants

stevecj commented Aug 12, 2011

In Rails 3.0.5, when attempting to execute code during Rails initialization that invokes Rails.initialized?, the following exception occurs...

uninitialized class variable @@initialized in Rails (NameError)

franckverrot added a commit to franckverrot/rails that referenced this issue Mar 27, 2012

Rails.initialized? can be called at any time without raising an excep…
…tion [Closes #2507]

Changes:

* `Rails.initialized=` has been removed
* `Rails.initialized?` and `Rails.application.initialized?` are now
* delegating to `MyApp::Application.initialized?`

@josevalim josevalim closed this in 0560ce0 Mar 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment