Created
June 2, 2015 21:59
-
-
Save csexton/1c057aec9f19ff562e98 to your computer and use it in GitHub Desktop.
Caching with jBuilder and Rails
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
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