Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `has_key?' for 10:Fixnum #36

Open
vanso-waqar opened this issue Mar 30, 2015 · 2 comments · May be fixed by #37
Open

undefined method `has_key?' for 10:Fixnum #36

vanso-waqar opened this issue Mar 30, 2015 · 2 comments · May be fixed by #37

Comments

@vanso-waqar
Copy link

Hi,
I am getting undefined method `has_key?' for 10:Fixnum error on '/sidekiq/queues' page.
When I traced the api/controllers/queues_controller.rb I found an issue with this line

status_counts = Sidekiq::Monitor::Job.where(queue: queue).count(group: 'status')

It works if I change it to

status_counts = Sidekiq::Monitor::Job.where(queue: queue).group_by(&:status)

Please suggest a work around for this.

@losadaem
Copy link

losadaem commented May 7, 2015

I've submitted a pull request that resolves this issue: #37

@shwanton
Copy link

seeing this issue as well w/ Rails 4.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants