You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActiveSupport::Concern::MultipleIncludedBlocks: Cannot define multiple 'included' blocks for a Concern
from /home/oivai/.rvm/gems/ruby-2.3.0/gems/activesupport-4.2.0/lib/active_support/concern.rb:126:in `included'
If I exclude concern from model, everything works just fine. Would you point me to the right direction? Is there a solution?
The text was updated successfully, but these errors were encountered:
By looking at the error you seem to use the 'included do' block twice within the same module.
Maybe you have a chance to prevent the usage of AR::Concern(and its hard-to-figure-out-errors-magic) by using the plain 'includes InstanceMethods, extend ClassMethods' scheme.
By looking at the error you seem to use the 'included do' block twice within the same module.
Maybe you have a chance to prevent the usage of AR::Concern(and its hard-to-figure-out-errors-magic) by using the plain 'includes InstanceMethods, extend ClassMethods' scheme.
—
You are receiving this because you authored the thread.
Reply to this email directly or #5 (comment)<>
Hi and thanks for this gem
If I have a model
that includes a concern
and i run
via rails console
I'm getting this
If I exclude concern from model, everything works just fine. Would you point me to the right direction? Is there a solution?
The text was updated successfully, but these errors were encountered: