Method: Wgit::Model.common_insert_data

Defined in:
lib/wgit/database/model.rb

.common_insert_dataHash

Common fields when inserting a record into the DB.

Returns:

  • (Hash)

    Insertion fields common to all models.



36
37
38
39
40
41
# File 'lib/wgit/database/model.rb', line 36

def self.common_insert_data
  {
    date_added: Wgit::Utils.time_stamp,
    date_modified: Wgit::Utils.time_stamp
  }
end