Last active
May 16, 2018 11:01
-
-
Save mleszcz/30746adcef3aea39504bb20bde4b88f7 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
class User | |
def active? | |
if self.class == User | |
@settings[:status] == :active | |
elsif self.class == AdminUser | |
@settings[1] == :active | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment