mbleigh/acts-as-taggable-on — pull request #579 by ProGM (2014-08-25 09:57:28+00:00)
Title: Adding additional configurable filters to tags

Adding a configurable option to apply additional filters to the tags before inserting them.

It can be useful to apply regular expressions or other simple string modifications to tags.

Example:
If you configure it like this:

ActsAsTaggableOn.filters = { capitalize: [], gsub: ['o', 'a'] }

Your tags will look like this:

@user.tag_list = 'foo, bar'

@user.tag_list
# => ["Faa", "Bar"]