Sha256: 521a8bf343fe868850507af5977d81101f84bfb52f2dd79fd7a22d8817d8a283
Contents?: true
Size: 485 Bytes
Versions: 5
Compression:
Stored size: 485 Bytes
Contents
module Pulitzer class Version < ActiveRecord::Base enum status: [ :preview, :active, :archived, :abandoned ] has_many :content_elements, dependent: :destroy has_many :post_tags, dependent: :destroy belongs_to :post def content_element(label) self.content_elements.find_by(label: label) end def template_content_elements content_elements.template end def free_form_content_elements content_elements.free_form end end end
Version data entries
5 entries across 5 versions & 1 rubygems