Module: ActsAsTaggableOnMongoid::Models::Concerns::TagMethods

Extended by:
ActiveSupport::Concern
Defined in:
lib/acts_as_taggable_on_mongoid/models/concerns/tag_methods.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object

INSTANCE METHODS:



62
63
64
65
66
67
# File 'lib/acts_as_taggable_on_mongoid/models/concerns/tag_methods.rb', line 62

def ==(other)
  super || (other.class == self.class &&
      name == other.name &&
      context == other.context &&
      taggable_type == other.taggable_type)
end

#to_sObject



69
70
71
# File 'lib/acts_as_taggable_on_mongoid/models/concerns/tag_methods.rb', line 69

def to_s
  name
end