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