Skip to content

Instantly share code, notes, and snippets.

@westonplatter
Created December 1, 2012 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save westonplatter/4185823 to your computer and use it in GitHub Desktop.
Save westonplatter/4185823 to your computer and use it in GitHub Desktop.
Why does 'extend ActiveSupport::Concern' cause `undefined method 'recycle!'`?
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment