If ActionController::Base gets loaded before the routes.rb file is parsed i.e a gem touches ActionController::Base when its getting loaded, then the callbacks are never defined on ActionController::Base. I think we need to keep an array of objects that have included the Helpers module and define_concern_callback should then call define_callback on the controllers.
If ActionController::Base gets loaded before the routes.rb file is parsed i.e a gem touches ActionController::Base when its getting loaded, then the callbacks are never defined on ActionController::Base. I think we need to keep an array of objects that have included the Helpers module and define_concern_callback should then call define_callback on the controllers.