Sha256: 02ca4823550bc4d43af67fe8ae5bca0109eaf343ac745148b1f9ab93a0141cb9
Contents?: true
Size: 294 Bytes
Versions: 4
Compression:
Stored size: 294 Bytes
Contents
module Ksk::Post extend ActiveSupport::Concern included do belongs_to :category has_many :assets, as: :fileable accepts_nested_attributes_for :assets, allow_destroy: true scope :all_posts, -> {except(:where)} scope :top, -> {where(top_news: true)} end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ksk-0.4.11 | app/models/concerns/ksk/post.rb |
ksk-0.4.10 | app/models/concerns/ksk/post.rb |
ksk-0.4.9 | app/models/concerns/ksk/post.rb |
ksk-0.4.8 | app/models/concerns/ksk/post.rb |