mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
14 lines
255 B
Ruby
14 lines
255 B
Ruby
module Projectable
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
has_many :projects
|
|
|
|
scope :order_position, ->{order(position: :asc)}
|
|
scope :without_content, -> { select(column_names - ['content'])}
|
|
end
|
|
|
|
module ClassMethods
|
|
end
|
|
end
|