Last active
May 30, 2017 19:29
-
-
Save mrdougwright/7722aec4381273a97ca3c1d51a158da3 to your computer and use it in GitHub Desktop.
Rails Fetch
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
def fetch(name, options = nil) | |
if block_given? | |
options = merged_options(options) | |
key = namespaced_key(name, options) | |
#code omitted | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment