the-trash / the_comments

Comments with threading for Rails 4 [Still works but must be replaced with https://github.com/TheComments]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with Sidekiq

swaathi opened this issue · comments

I just started Sidekiq and this issue occurred. The Comments was working perfectly all this time. Today I tried to implement Sidekiq in my project (which I've done for other projects before), and I was unable to even start it.

I, [2015-04-29T19:03:27.365621 #66653]  INFO -- : ** [Raven] Raven 0.13.1 ready to catch errors
/Users/swaathi/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/the_comments-2.2.2/app/controllers/concerns/controller.rb:2: warning: already initialized constant TheComments::COMMENTS_COOKIES_TOKEN
/Users/swaathi/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/the_comments-2.2.2/app/controllers/concerns/controller.rb:2: warning: previous definition of COMMENTS_COOKIES_TOKEN was here
Cannot define multiple 'included' blocks for a Concern
/Users/swaathi/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0/lib/active_support/concern.rb:126:in `included'
/Users/swaathi/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/the_comments-2.2.2/app/controllers/concerns/controller.rb:9:in `<module:ViewToken>'
/Users/swaathi/.rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/the_comments-2.2.2/app/controllers/concerns/controller.rb:6:in `<module:TheComments>'

Hello, sorry, I have vacation. I will answer asap.

@swaathi hello. This problem usually related with require or require_related instructions in code. But I think I fixed, and it replaced with authoload instructions.

you can see it here

https://github.com/the-teacher/the_comments/blob/master/lib/the_comments.rb#L13

which version are you use? Can you install gem from master branch?

That's great. Thanks for issuing a fix. I'll pull it from the master and get back to you. :)

On May 4, 2015, at 5:00 PM, Ilya N. Zykin notifications@github.com wrote:

@swaathi hello. This problem usually related with require or require_related instructions in code. But I think I fixed, and it replaced with authoload instructions.

you can see it here

https://github.com/the-teacher/the_comments/blob/master/lib/the_comments.rb#L13

which version are you use? Can you install gem from master branch?


Reply to this email directly or view it on GitHub.

i just encountered the same issue, pulled down master, and sidekiq works fine. thanks!

looks fixed for @jakeatwork
I hope it fixed in master