ruby-on-railsruby-on-rails-4.1

How to receive current list of Rails initializers?


Rails Guides say here: "Below is a comprehensive list of all the initializers found in Rails". But how can I receive such list?

I.e if I have MyApp, I want to find some method MyApp::Application.initializers (just an example, does not work), that returns me a full list of applied initializers.


Solution

  • Ok, I've found it!

    It is MyApp::Application.instance.initializers