Created
October 25, 2016 01:24
-
-
Save rodocite/a6908583a800c7b75f4436fd7b096850 to your computer and use it in GitHub Desktop.
klass
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
klass = if Designer.where(email: resource_params[:email]).exists? | |
Designer | |
else | |
User | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment