Skip to content

Commit

Permalink
revert last as it was causing issues with some dbs
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley Beary committed Mar 5, 2009
1 parent 2e3b56a commit a22b9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_taggable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.included(base)
module ClassMethods
def acts_as_taggable(options = {})
has_many :taggings, :as => :taggable, :dependent => :destroy, :include => :tag
has_many :tags, :through => :taggings, :order => 'LOWER(tags.name) ASC', :select => "DISTINCT ON (LOWER(tags.name)) tags.*"
has_many :tags, :through => :taggings, :order => 'LOWER(name) asc', :select => "DISTINCT tags.*"

after_save :update_tags

Expand Down

0 comments on commit a22b9b9

Please sign in to comment.