module ActsAsTaggableOn::TagListParser

Returns a new TagList using the given tag string.

Example:

tag_list = ActsAsTaggableOn::TagListParser.parse("One , Two,  Three")
tag_list # ["One", "Two", "Three"]

Public Class Methods

parse(string) click to toggle source

DEPRECATED

# 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