Class: Specify::Model::CommonName

Inherits:
Object
  • Object
show all
Defined in:
lib/specify/models/taxonomy/common_name.rb

Instance Method Summary collapse

Instance Method Details

#before_createObject



9
10
11
12
13
# File 'lib/specify/models/taxonomy/common_name.rb', line 9

def before_create
  self.Version = 0
  self.TimestampCreated = Time.now
  super
end

#before_updateObject



15
16
17
18
19
# File 'lib/specify/models/taxonomy/common_name.rb', line 15

def before_update
  self.Version += 1
  self.TimestampModified = Time.now
  super
end