mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-09 22:39:50 +08:00
init project
This commit is contained in:
7
app/models/concerns/publicable.rb
Normal file
7
app/models/concerns/publicable.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
module Publicable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
scope :visible, -> { where(is_public: true) }
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user