Sha256: fce2839b8e69ea9686fee8f2776bebbd4bd9d57cede10f83398ba6c4eacd8e95

Contents?: true

Size: 221 Bytes

Versions: 12

Compression:

Stored size: 221 Bytes

Contents

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pulitzer-0.15.12 app/models/pulitzer/partial_type.rb
pulitzer-0.15.11 app/models/pulitzer/partial_type.rb
pulitzer-0.15.10 app/models/pulitzer/partial_type.rb
pulitzer-0.15.9 app/models/pulitzer/partial_type.rb
pulitzer-0.15.8 app/models/pulitzer/partial_type.rb
pulitzer-0.15.7 app/models/pulitzer/partial_type.rb
pulitzer-0.15.6 app/models/pulitzer/partial_type.rb
pulitzer-0.15.5 app/models/pulitzer/partial_type.rb
pulitzer-0.15.4 app/models/pulitzer/partial_type.rb
pulitzer-0.15.3 app/models/pulitzer/partial_type.rb
pulitzer-0.15.2 app/models/pulitzer/partial_type.rb
pulitzer-0.15.1 app/models/pulitzer/partial_type.rb