Class: PipeLineDealer::Note

Inherits:
Model::Base show all
Defined in:
lib/pipe_line_dealer/model/note.rb

Constant Summary

Constants included from Model::Base::Concern::Persistance

Model::Base::Concern::Persistance::IGNORE_ATTRIBUTES_WHEN_SAVING

Instance Attribute Summary

Attributes inherited from Model::Base

#attributes, #id

Instance Method Summary collapse

Methods inherited from Model::Base

#==, #attributes_for_saving, attrs, inherited, #initialize, pld_attr, #to_json, #to_s

Methods included from Model::Base::Concern::Persistance

#destroy, #new_record?, #persisted?, #save

Constructor Details

This class inherits a constructor from PipeLineDealer::Model::Base

Instance Method Details

#attributes_for_saving_with_note(attributes) ⇒ Object



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/pipe_line_dealer/model/note.rb', line 15

def attributes_for_saving_with_note attributes
  attributes = attributes_for_saving_without_note(attributes)

  attributes.delete(:deal)
  attributes.delete(:created_by_user)
  attributes.delete(:note_category)

  attributes.delete(:created_at)
  attributes.delete(:updated_at)
  attributes.delete(:company)
  attributes.delete(:person)

  attributes
end

#process_attributesObject



11
12
13
# File 'lib/pipe_line_dealer/model/note.rb', line 11

def process_attributes
  # TODO: Remove these convenience objects for now
end