diff --git a/app/models/mixins/retirement_mixin.rb b/app/models/mixins/retirement_mixin.rb index 90c150206d4a..0097ce2c5054 100644 --- a/app/models/mixins/retirement_mixin.rb +++ b/app/models/mixins/retirement_mixin.rb @@ -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