Skip to content

Commit

Permalink
Call instance method for vm retire queueing
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Feb 20, 2020
1 parent bfb1749 commit e87196b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/mixins/retirement_mixin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ def set_retirement_requester(obj_ids, requester)
end
end

def instance_retire_request
make_retire_request(id, User.current_user)
end

def retirement_warn=(days)
if retirement_warn != days
self.retirement_last_warn = nil # Reset so that a new warning can be sent out when the time is right
Expand Down

0 comments on commit e87196b

Please sign in to comment.