Class: Pulitzer::PostTag
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
7
8
9
10
|
# File 'app/models/pulitzer/post_tag.rb', line 7
def self.export_config
{ except: [:id, :version_id, :created_at, :updated_at] }
end
|
Instance Method Details
#clone_me ⇒ Object
12
13
14
15
16
|
# File 'app/models/pulitzer/post_tag.rb', line 12
def clone_me
my_clone = self.dup
my_clone.version_id = nil
my_clone
end
|