module Mongoid::TaggableWithContext

Constants

DEFAULT_FIELD
DEFAULT_SEPARATOR
VERSION

Public Instance Methods

set_tag_string_for(context, value) click to toggle source
# File lib/mongoid/taggable_with_context.rb, line 19
def set_tag_string_for(context, value)
  self.write_attribute(context, self.class.format_tags_for(context, value))
end
tag_string_for(context) click to toggle source
# File lib/mongoid/taggable_with_context.rb, line 15
def tag_string_for(context)
  self.read_attribute(context).join(self.class.get_tag_separator_for(context)) rescue ""
end