Sha256: df08f519c7cf713decfee38e23a9f993ebc005a35fe431a293e4ffaedc5639f5

Contents?: true

Size: 213 Bytes

Versions: 8

Compression:

Stored size: 213 Bytes

Contents

module Pulitzer
  class PartialType < ActiveRecord::Base
    belongs_to :free_form_section_type
    belongs_to :post_type

    def first?
      free_form_section_type.first_partial_type.id == id
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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