mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
9 lines
185 B
Ruby
9 lines
185 B
Ruby
module Publicable
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
scope :visible, -> { where(is_public: true) }
|
|
scope :is_private, -> {where(is_public: false)}
|
|
end
|
|
end
|