Last active
September 14, 2016 06:03
-
-
Save idlecool/a8571c1df54cf95534259ff5a347d69c 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 | |
# class method | |
# User::find | |
# some people use User.find, I am not one of those | |
def self.find id | |
# ... | |
end | |
# instance method | |
# User#where | |
def where | |
# ... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment