Skip to content

Commit

Permalink
clean! should return self.
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Jul 10, 2016
1 parent 2c6214f commit c739422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/acts_as_taggable_on/tag_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def +(other_tag_list)
# Appends the elements of +other_tag_list+ to +self+.
def concat(other_tag_list)
super(other_tag_list).send(:clean!)
self
end

##
Expand Down Expand Up @@ -86,6 +85,7 @@ def clean!
map!(&:parameterize) if ActsAsTaggableOn.force_parameterize

ActsAsTaggableOn.strict_case_match ? uniq! : uniq!{ |tag| tag.downcase }
self
end


Expand Down

0 comments on commit c739422

Please sign in to comment.