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:


59
60
61
62
63
64
# File 'lib/acts_as_taggable_on_mongoid/models/concerns/tag_methods.rb', line 59

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

#to_sObject


66
67
68
# File 'lib/acts_as_taggable_on_mongoid/models/concerns/tag_methods.rb', line 66

def to_s
  name
end