2020-03-09 00:40:16 +08:00
|
|
|
module Projectable
|
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
|
|
included do
|
2020-05-25 11:19:59 +08:00
|
|
|
has_many :projects
|
|
|
|
|
|
|
|
|
|
scope :order_position, ->{order(position: :asc)}
|
2020-03-09 00:40:16 +08:00
|
|
|
scope :without_content, -> { select(column_names - ['content'])}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
module ClassMethods
|
|
|
|
|
end
|
|
|
|
|
end
|