Skip to content

Instantly share code, notes, and snippets.

@donovan-duplessis
Last active November 27, 2015 07:25
Show Gist options
  • Save donovan-duplessis/b32cf9cacca1cb8a572b to your computer and use it in GitHub Desktop.
Save donovan-duplessis/b32cf9cacca1cb8a572b to your computer and use it in GitHub Desktop.
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