Class: Assign

Inherits:
ApplicationRecord show all
Defined in:
app/models/assign.rb

Instance Method Summary collapse

Instance Method Details

#overdue?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/models/assign.rb', line 10

def overdue?
	service_pack.unavailable?
end

#terminateObject



5
6
7
8
9
# File 'app/models/assign.rb', line 5

def terminate
	self.assigned = false
	self.unassign_date = Date.today
	self.save!
end