module ActsAsTaggableOnMongoid::Taggable::TagTypeDefinition::Names
Methods for the TagTypeDefinition
class which provide the names for important/commonly used methods that will be defined/added for a tag when it is added to a model.
Public Instance Methods
all_tag_list_name()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/names.rb, line 29 def all_tag_list_name @all_tag_list_name ||= "all_#{tag_type}_list" end
all_tag_list_variable_name()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/names.rb, line 33 def all_tag_list_variable_name @all_tag_list_variable_name ||= "@#{all_tag_list_name}" end
from_list_name()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/names.rb, line 13 def from_list_name @from_list_name ||= "#{tag_type.to_s.pluralize}_from" end
single_tag_type()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/names.rb, line 37 def single_tag_type @single_tag_type ||= tag_type.to_s.singularize end
tag_list_name()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/names.rb, line 9 def tag_list_name @tag_list_name ||= "#{single_tag_type}_list" end
tag_list_variable_name()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/names.rb, line 25 def tag_list_variable_name @tag_list_variable_name ||= "@#{tag_list_name}" end
tagger_tag_list_name()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/names.rb, line 17 def tagger_tag_list_name @tagger_tag_list_name ||= "tagger_#{single_tag_type}_list" end
tagger_tag_lists_name()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/names.rb, line 21 def tagger_tag_lists_name @tagger_tag_lists_name ||= "tagger_#{single_tag_type}_lists" end
taggings_name()
click to toggle source
# File lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/names.rb, line 45 def taggings_name @taggings_name ||= taggings_table.name.demodulize.underscore.downcase.pluralize.to_sym end