Sha256: dff7f633c740fa6478c6a215f16178be44e9df968c1387f165cfaf6d27b270b1
Contents?: true
Size: 539 Bytes
Versions: 6
Compression:
Stored size: 539 Bytes
Contents
module Workarea class Content::Blog include ApplicationDocument include Navigable include Contentable include Workarea::Releasable include Commentable field :name, type: String, localize: true field :navigation, type: String has_many :entries, dependent: :destroy, class_name: 'Workarea::Content::BlogEntry' validates :name, presence: true def tags if entries.any? entries.all_tags.map { |t| t[:name] } else [] end end end end
Version data entries
6 entries across 6 versions & 1 rubygems