Class: Pulitzer::ArrangementStyle

Inherits:
ApplicationRecord show all
Defined in:
app/models/pulitzer/arrangement_style.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



8
9
10
# File 'app/models/pulitzer/arrangement_style.rb', line 8

def self.export_config
  {except: :id}
end

Instance Method Details

#clone_meObject



12
13
14
15
16
17
# File 'app/models/pulitzer/arrangement_style.rb', line 12

def clone_me
  clone_attrs = self.attributes.dup
  clone_attrs.delete 'id'
  clone_attrs.delete 'post_type_version_id'
  Pulitzer::ArrangementStyle.new(clone_attrs)
end