Skip to content

Commit

Permalink
attempting to patch postgres grouping error.
Browse files Browse the repository at this point in the history
This change causes a couple tests to fail, but I don't yet know why
  • Loading branch information
xwmx committed May 15, 2010
1 parent 22ef8c3 commit 50080c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/acts_as_taggable_on/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def all_tags_list_on(context)
# Returns all tags of a given context
def all_tags_on(context)
opts = ["#{ActsAsTaggableOn::Tagging.table_name}.context = ?", context.to_s]
base_tags.where(opts).order("#{ActsAsTaggableOn::Tagging.table_name}.created_at").group("#{ActsAsTaggableOn::Tagging.table_name}.tag_id").all
base_tags.where(opts).order("#{ActsAsTaggableOn::Tagging.table_name}.created_at").group("#{ActsAsTaggableOn::Tag.table_name}.id, #{ActsAsTaggableOn::Tag.table_name}.name, #{ActsAsTaggableOn::Tagging.table_name}.created_at, #{ActsAsTaggableOn::Tagging.table_name}.tag_id").all
end

##
Expand Down

0 comments on commit 50080c2

Please sign in to comment.