I want to extend the models and controllers from Engine by reopening them in the Rails app. The problem is they are not loaded when the app starts. I know there are some solutions for this like Rails engines extending functionality and how to override rails 3 engine models and controllers in the main application?, but I suspect this is due to the loading sequence of rails, and there should be some neat solution.
Then I come across with this solution:
config.railties_order = [Blog::Engine, :main_app, :all]
However, models and controllers in Engine are loaded, but not the ones in rails. Just wondering if anyone made this work before?