Skip to content

Commit

Permalink
Merge pull request #536 from seuros/masterstring
Browse files Browse the repository at this point in the history
Convert tags to string : fixes #532
  • Loading branch information
seuros committed May 16, 2014
2 parents db29cbf + 753d700 commit 2ee00ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/acts_as_taggable_on/tag_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ def to_s

private

# Remove whitespace, duplicates, and blanks.
# Convert everything to string, remove whitespace, duplicates, and blanks.
def clean!
reject!(&:blank?)
map!(&:to_s)
map!(&:strip)
map! { |tag| tag.mb_chars.downcase.to_s } if ActsAsTaggableOn.force_lowercase
map!(&:parameterize) if ActsAsTaggableOn.force_parameterize
Expand Down

0 comments on commit 2ee00ee

Please sign in to comment.