I have an engine which defines some models and controllers. I want to be able to extend functionality of some models/controllers in my application (eg. adding methods) witho
You can change the load order of the engine to avoid the require on each of your models.
In config/application.rb add this line:
module MyApp class Application config.railties_order = [MyEngine::Engine, :main_app, :all] end end
This will ensure that the models from MyEngine are loaded before MyApp