Skip to content

Instantly share code, notes, and snippets.

@csexton
Created June 2, 2015 21:59
Show Gist options
  • Save csexton/1c057aec9f19ff562e98 to your computer and use it in GitHub Desktop.
Save csexton/1c057aec9f19ff562e98 to your computer and use it in GitHub Desktop.
Caching with jBuilder and Rails
json.cache! kit do
json.kit do
json.extract! kit, :id, :name, :created_at, :updated_at
json.name kit.name
# ...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment