di-acts-as-taggable 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -232,9 +232,9 @@ module ActiveRecord
232
232
  at_least = sanitize_sql(['COUNT(*) >= ?', options.delete(:at_least)]) if options[:at_least]
233
233
  at_most = sanitize_sql(['COUNT(*) <= ?', options.delete(:at_most)]) if options[:at_most]
234
234
  having = [at_least, at_most].compact.join(' AND ')
235
- group_by = "#{Tag.table_name}.id"
235
+ group_by = "#{Tag.table_name}.name"
236
236
 
237
- { :select => "#{Tag.table_name}.*, COUNT(*) AS count",
237
+ { :select => "#{Tag.table_name}.name, COUNT(*) AS count",
238
238
  :joins => joins.join(" "),
239
239
  :conditions => conditions,
240
240
  :group => group_by,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: di-acts-as-taggable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dieinzige