discourse-topic-voting/lib/discourse_topic_voting/user_extension.rb

10 lines
219 B
Ruby

# frozen_string_literal: true
module DiscourseTopicVoting
module UserExtension
def self.prepended(base)
base.has_many :votes, class_name: 'DiscourseTopicVoting::Vote', dependent: :destroy
end
end
end