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 <<WARNING ActsAsTaggableOn::TagListParser.parse is deprecated \ and will be removed from v4.0+, use \ ActsAsTaggableOn::TagListParser.new instead WARNING DefaultParser.new(string).parse end |