Class: Pulitzer::BackgroundStyle
Class Method Summary
collapse
Instance Method Summary
collapse
assoc_name, attrs_name, convert_hash_to_nested, convert_nested_assoc
Class Method Details
.export_config ⇒ Object
8
9
10
|
# File 'app/models/pulitzer/background_style.rb', line 8
def self.export_config
{ except: :id }
end
|
Instance Method Details
#clone_me ⇒ Object
12
13
14
15
16
17
|
# File 'app/models/pulitzer/background_style.rb', line 12
def clone_me
clone_attrs = self.attributes.dup
clone_attrs.delete 'id'
clone_attrs.delete 'post_type_version_id'
Pulitzer::BackgroundStyle.new(clone_attrs)
end
|