the-trash/the_comments

ActiveSupport::Concern::MultipleIncludedBlocks - Cannot define multiple 'included' blocks for a Concern:

Closed this issue · 2 comments

I've gone through trying to get the gem setup correctly in my application, but each time I try and submit a comment, I get the following error in the console for my application:

ActiveSupport::Concern::MultipleIncludedBlocks - Cannot define multiple 'included' blocks for a Concern:
  activesupport (4.1.0) lib/active_support/concern.rb:126:in `included'
  the_comments (2.2.2) app/models/concerns/user.rb:5:in `<module:User>'
  the_comments (2.2.2) app/models/concerns/user.rb:2:in `<module:TheComments>'
  the_comments (2.2.2) app/models/concerns/user.rb:1:in `<top (required)>'
  activesupport (4.1.0) lib/active_support/dependencies.rb:443:in `block in load_file'
  activesupport (4.1.0) lib/active_support/dependencies.rb:633:in `new_constants_in'
  activesupport (4.1.0) lib/active_support/dependencies.rb:442:in `load_file'
  activesupport (4.1.0) lib/active_support/dependencies.rb:342:in `require_or_load'
  activesupport (4.1.0) lib/active_support/dependencies.rb:480:in `load_missing_constant'
  activesupport (4.1.0) lib/active_support/dependencies.rb:180:in `const_missing'

Other information that might be helpful. I am on Rails 4.1.0.

Gemfile contents:

gem 'the_comments'
gem 'awesome_nested_set', '~> 3.0.0.rc.4'

My commenting model is Account, not User:

class Account < ActiveRecord::Base
  include TheComments::User

...
end

I did provide a current_user helper method in ApplicationController that simply calls the current_account helper method.

I haven't tried to setup the dummy app under Rails 4.1.0 to see if I get the same error, but may try that next and report back on this issue.

hello! my little vacation is over

I'll check it at few nearest days

sorry, I failed.