Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
discourse-annotator / app / models / concerns / user_annotatable.rb
Size: Mime:
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