Skip to content

Instantly share code, notes, and snippets.

@sabcio
Last active December 10, 2015 21:18
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 sabcio/4493871 to your computer and use it in GitHub Desktop.
Save sabcio/4493871 to your computer and use it in GitHub Desktop.
Load error when working with ActiveSupport::Concern
# app/models/something.rb
class Something < ActiveRecord::Base
...
end
# app/models/example.rb
class Example < ActiveRecord::Base
include Something # (I get the error here)
...
end
# app/models/example/something.rb
module Example::Something
extend ActiveSupport::Concern
...
end
When runnig tests with zeus
$ zeus test
'include': wrong argument type Class (expected Module) (TypeError)
changing Example::Something to anything else helps, but I don't like that solution, any ideas?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment