Last active
August 29, 2015 14:03
-
-
Save teliosdev/88cbb8f00777d705c205 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
post_comments = Hash.new | |
def find_comments_for(post_id) | |
post_commends.fetch(post_id) do | |
post_comments[post_id] = fetch_comments(post_id) | |
end | |
end | |
def fetch_comments(post_id) | |
# ... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment