blob: 49aa38285fa5ad95d4e6df7a29ea786352154fe5 (
plain) (
tree)
|
|
# frozen_string_literal: true
class Rating < ActiveRecord::Base
belongs_to :comment
has_many :taggings, as: :taggable
has_many :taggings_without_tag, -> { left_joins(:tag).where("tags.id": nil) }, as: :taggable, class_name: "Tagging"
end
|