blob: f576d2c08215b021d36732428289238bfd32a075 (
plain)
1
2
3
4
5
6
7
8
|
module SharedScopes
extend ActiveSupport::Concern
included do
scope :public_only, -> { where(visibility_level: Group::PUBLIC) }
scope :public_and_internal_only, -> { where(visibility_level: [Group::PUBLIC, Group::INTERNAL] ) }
end
end
|