Skip to content

Instantly share code, notes, and snippets.

@mrdougwright
Last active May 30, 2017 19:29
Show Gist options
  • Save mrdougwright/7722aec4381273a97ca3c1d51a158da3 to your computer and use it in GitHub Desktop.
Save mrdougwright/7722aec4381273a97ca3c1d51a158da3 to your computer and use it in GitHub Desktop.
Rails Fetch
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