Files
gitlink-forgeplus/app/models/concerns/projectable.rb
2020-05-09 15:51:40 +08:00

13 lines
228 B
Ruby

module Projectable
extend ActiveSupport::Concern
included do
has_many :projects, -> { order(position: :asc) }
scope :without_content, -> { select(column_names - ['content'])}
end
module ClassMethods
end
end