mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-11 07:15:55 +08:00
init project
This commit is contained in:
9
app/models/concerns/publishable.rb
Normal file
9
app/models/concerns/publishable.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
module Publishable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
alias_attribute :publish, :is_publish
|
||||
enum publish: { published: 1, unpublish: 0 }
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user