Sha256: ced0ac4320bd990e8e52835fc88fa0a6d00dd7d39c0537fbce7b0bcb9314e1e0

Contents?: true

Size: 282 Bytes

Versions: 7

Compression:

Stored size: 282 Bytes

Contents

module Pulitzer
  class FreeFormSectionType < ActiveRecord::Base
    include Pulitzer::PostTypeElement

    belongs_to :post_type
    has_many :free_form_sections
    has_many :partial_types, -> { order :id }

    def first_partial_type
      partial_types.first
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pulitzer-0.14.4 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.14.3 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.14.2 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.14.1 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.14.0 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.13.1 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.13.0 app/models/pulitzer/free_form_section_type.rb