mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
10 lines
177 B
Ruby
10 lines
177 B
Ruby
module Publishable
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
alias_attribute :publish, :is_publish
|
|
enum publish: { published: 1, unpublish: 0 }
|
|
end
|
|
|
|
end
|