Class: Specify::Model::AppResourceDir

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

Instance Method Summary collapse

Instance Method Details

#before_createObject



20
21
22
23
24
# File 'lib/specify/models/app_resource_dir.rb', line 20

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

#discipline_typeObject

Returns a String that is the discipline type (same as Specify::Model::Discipline#name)



28
29
30
# File 'lib/specify/models/app_resource_dir.rb', line 28

def discipline_type
  self.DisciplineType
end