In Rails 3, I was able to do distinguish mounted (or mountable) engines from "other" engines by calling
MyEngine::Engine.class.mounted_path. This does not work in Rails 4 anymore. Based on this question, railties seem to have been deprecated.
How can I distinguish between mountable engines in Rails 4?
Rails::Engine.subclasses
This will return the mounted engines.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With