Class: Pulitzer::PartialType

Inherits:
ApplicationRecord show all
Defined in:
app/models/pulitzer/partial_type.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ApplicationRecord

assoc_name, attrs_name, convert_hash_to_nested, convert_nested_assoc

Class Method Details

.export_configObject



6
7
8
# File 'app/models/pulitzer/partial_type.rb', line 6

def self.export_config
  { except: :id }
end

Instance Method Details

#first?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/models/pulitzer/partial_type.rb', line 10

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