Class: Assign
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Assign
- Defined in:
- app/models/assign.rb
Instance Method Summary collapse
Instance Method Details
#overdue? ⇒ Boolean
10 11 12 |
# File 'app/models/assign.rb', line 10 def overdue? service_pack.unavailable? end |
#terminate ⇒ Object
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 |