Sha256: 67978ee66bffaa3ba4b449201604d6a667d9c741b2112cc080bf438150743cb2
Contents?: true
Size: 795 Bytes
Versions: 22
Compression:
Stored size: 795 Bytes
Contents
# frozen_string_literal: true module Thredded module UserPermissions module Read module All extend ActiveSupport::Concern included { extend ClassMethods } # @return [ActiveRecord::Relation<Thredded::Messageboard>] messageboards that the user can read def thredded_can_read_messageboards Thredded::Messageboard.all end module ClassMethods # Users that can read some of the given messageboards. # # @param _messageboards [Array<Thredded::Messageboard>] # @return [ActiveRecord::Relation<Thredded.user_class>] users that can read the given messageboards def thredded_messageboards_readers(_messageboards) all end end end end end end
Version data entries
22 entries across 22 versions & 2 rubygems