Skip to content

Commit

Permalink
Fixes #16622 - Disambiguate resource_name column name in #hosts_count
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonweeks committed Sep 20, 2016
1 parent bbefa32 commit f52df73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def hidden_spinner(text = '', options = {})
end

def hosts_count(resource_name = controller.resource_name)
@hosts_count ||= Host::Managed.reorder('').authorized.group("#{resource_name}_id").count
@hosts_count ||= Host::Managed.reorder('').authorized.group("hosts.#{resource_name}_id").count
end

def webpack_dev_server
Expand Down

0 comments on commit f52df73

Please sign in to comment.