Module: ActsAsTaggableOn::TagListParser
- Defined in:
- lib/acts_as_taggable_on/tag_list_parser.rb
Overview
Returns a new TagList using the given tag string.
Example:
tag_list = ActsAsTaggableOn::TagListParser.parse("One , Two, Three")
tag_list # ["One", "Two", "Three"]
Class Method Summary collapse
-
.parse(string) ⇒ Object
DEPRECATED.
Class Method Details
.parse(string) ⇒ Object
DEPRECATED
11 12 13 14 15 16 17 18 |
# File 'lib/acts_as_taggable_on/tag_list_parser.rb', line 11 def parse(string) ActiveRecord::Base.logger.warn "ActsAsTaggableOn::TagListParser.parse is deprecated \\\nand will be removed from v4.0+, use \\\nActsAsTaggableOn::TagListParser.new instead\n" DefaultParser.new(string).parse end |