How to receive current list of Rails initializers?
-
21-12-2019 - |
Question
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 example, not works), that returns me full used initializers list.
Solution
Ok, I find it!
It is MyApp::Application.instance.initializers
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow