Repository URL to install this package:
|
Version:
1.0.0 ▾
|
module UserAnnotatable
extend ActiveSupport::Concern
included do
has_one :discourse_annotator_settings, class_name: 'DiscourseAnnotator::UserSetting', foreign_key: 'discourse_user_id'
def self.annotators
annotator_group = Group.find_by(name: 'annotator')
joins(:group_users).where(group_users: {group_id: annotator_group.id})
end
end
end