Sha256: e0338d4b66a0c1d8c752bb6abc694380b9210a3404d97c93699f10f11f0e86a3

Contents?: true

Size: 290 Bytes

Versions: 11

Compression:

Stored size: 290 Bytes

Contents

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

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

    def first_partial_type
      partial_types.first
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pulitzer-0.15.10 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.15.9 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.15.8 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.15.7 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.15.6 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.15.5 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.15.4 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.15.3 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.15.2 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.15.1 app/models/pulitzer/free_form_section_type.rb
pulitzer-0.15.0 app/models/pulitzer/free_form_section_type.rb