public
Last active

Why does 'extend ActiveSupport::Concern' cause `undefined method 'recycle!'`?

  • Download Gist
example.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# code in my rails engine
 
moduel MyEngine
class SomeController
extend ActiveSupport::Concern
def engine_some_method
end
end
end
 
 
# code in my rails app where engine is implemented
 
class SomeController
include MyEngine::SomeController
 
def app_some_method
end
 
# code that's available by including the Rails Engine code
# def engine_some_method
# end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.