app/models/tag.rb
# Tags can not be cited.
Tags can not be cited.
Tags can not be cited .
def object_can_be_tagged_with_keyword
    return true if keyword.nil? || tag_object.nil? || !tag_object.respond_to?(:taggable_with)
    if !tag_object.taggable_with.include?(keyword.class.name)
      errors.add(:tag_object, "this tag_object_type (#{tag_object.class}) can not be tagged with this keyword class (#{keyword.class})")
    end
  end
def object_can_be_tagged_with_keyword return true if keyword . nil? || tag_object . nil? || ! tag_object . respond_to? ( :taggable_with ) if ! tag_object . taggable_with . include? ( keyword . class . name ) errors . add ( :tag_object , "this tag_object_type (#{tag_object.class}) can not be tagged with this keyword class (#{keyword.class})" ) end end
Tags can not be cited.
Tags can not be cited .