forgeplus/app/models/concerns/projectable.rb

14 lines
255 B
Ruby
Raw Normal View History

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