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?