Last active
December 10, 2015 21:18
-
-
Save sabcio/4493871 to your computer and use it in GitHub Desktop.
Load error when working with ActiveSupport::Concern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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