When I comment out the “include MyEngine::Controller” everything passes.
If it’s commenting out the include that fixes things, why are you so
sure that it’s the extend at fault rather than something else in the
module? Personally I’d be inclined to thing that by including your
module you’re accidentally shadowing an existing method on the
controller - if you were to show a minimal example that reproduces the
problem rather than dummy code someone might be able to have a guess
(I suspect the issue may have been lost in translation from your
actual code to the example you gave since the latter isn’t valid ruby
(for example you’re including a class rather than a module)
Calling extend activesupport::concern on a controller sounds like a
weird thing to do
it’s supposed to be used on modules. What were you trying to do
with it?
And I assume that the reason this causes a problem is something to do
with how as::concern changes the behaviour of include so as to setup
module dependencies.
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.