Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Commit

Permalink
Merge pull request #667 from 18F/approver-method
Browse files Browse the repository at this point in the history
use existing logic to retrieve the current approver on a WorkOrder
  • Loading branch information
Jessie A. Young committed Oct 6, 2015
2 parents 7b95c8d + 804b846 commit d5be8e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/concerns/proposal_delegate.rb
Expand Up @@ -20,7 +20,7 @@ module ProposalDelegate
validates :proposal, presence: true


delegate :add_observer, :add_requester, :set_requester, to: :proposal
delegate :add_observer, :add_requester, :set_requester, :currently_awaiting_approvers, to: :proposal

### delegate the workflow actions/scopes/states ###

Expand Down
2 changes: 1 addition & 1 deletion app/models/ncr/work_order.rb
Expand Up @@ -117,7 +117,7 @@ def approving_official
# the highest approver on the stack, pending preferred if status indicates
def current_approver_email_address
if self.pending?
self.individual_approvals.where(status: 'actionable').first.user.email_address
self.currently_awaiting_approvers.first.email_address
else
self.approving_official.email_address
end
Expand Down

0 comments on commit d5be8e6

Please sign in to comment.