My source is at: https://gist.github.com/f01685376a02a577a9cb
the method in question:
def is_valid_email?(address)
User.find_by_email(address)
end
I think the solution is to change the value for User.find_by_email(address) to something like User.find_by_email(next_approver_email) = (address) but I know that doesn’t work.
Next_approver_email is what we are tying to check against the user.email db column
any ideas?
You need to pass the email into
is_valid_email?at the end of line 5