Class: Pulitzer::PostTag

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



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_meObject



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