Last active
November 27, 2015 07:25
-
-
Save donovan-duplessis/b32cf9cacca1cb8a572b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def status | |
if new_record? | |
'Partially Created' | |
else | |
if login.new | |
if !login.active | |
'Pending HI activation' | |
end | |
else | |
if login.awaiting_confirmation | |
'Awaiting capture at GFA' | |
else | |
if !login.active | |
'De-activated' | |
else | |
if !login.locked | |
login.verified ? 'Active' : 'Pending User Activation' | |
else | |
'Locked' | |
end | |
end | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment