BigW Consortium Gitlab

select_for_project_authorization.rb 232 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
module SelectForProjectAuthorization
  extend ActiveSupport::Concern

  module ClassMethods
    def select_for_project_authorization
      select("members.user_id, projects.id AS project_id, members.access_level")
    end
  end
end