Files
gitlink-forgeplus/app/models/concerns/projectable.rb
sylor_huang@126.com bc5f695094 修改后端bug
2020-05-25 11:19:59 +08:00

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