1
0
mirror of synced 2026-08-31 20:14:59 +00:00
Files

17 lines
381 B
Ruby
Raw Permalink Normal View History

2024-12-03 10:27:03 -03:00
# frozen_string_literal: true
module DiscourseAi
module PostExtensions
extend ActiveSupport::Concern
prepended do
has_many :classification_results, as: :target
has_many :sentiment_classifications,
-> { where(classification_type: "sentiment") },
class_name: "ClassificationResult",
as: :target
end
end
end