diff options
| author | mo khan <mo@mokhan.ca> | 2014-11-22 21:35:54 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-11-22 21:35:54 -0700 |
| commit | 93d22d876deded6f7453dafef151db8d4582c8f5 (patch) | |
| tree | 140922d286f1fdffebcc241073f73b6d0aaf4e18 /app/views/api/v1/tutorials/_tutorial.json.jbuilder | |
| parent | 84d4bc964b9f5e1eb93819087af564655a8cabef (diff) | |
| parent | 7620674929c024a7279dfa116deab8805f2fb2ec (diff) | |
Merge branch 'master' of bitbucket.org:cakeside/cakeside
Diffstat (limited to 'app/views/api/v1/tutorials/_tutorial.json.jbuilder')
| -rw-r--r-- | app/views/api/v1/tutorials/_tutorial.json.jbuilder | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/app/views/api/v1/tutorials/_tutorial.json.jbuilder b/app/views/api/v1/tutorials/_tutorial.json.jbuilder index 6bfdbc1a..dbfe2974 100644 --- a/app/views/api/v1/tutorials/_tutorial.json.jbuilder +++ b/app/views/api/v1/tutorials/_tutorial.json.jbuilder @@ -1,12 +1,14 @@ -json.id tutorial.id -json.heading tutorial.heading -json.description tutorial.description -json.url tutorial.url -json.image_url tutorial.image_url -json.author tutorial.author -json.author_url tutorial.author_url -json.created_at tutorial.created_at -json.updated_at tutorial.updated_at -json.tags tutorial.tags do |tag| - json.name tag.name +json.cache! ['v1', tutorial] do + json.id tutorial.id + json.heading tutorial.heading + json.description tutorial.description + json.url tutorial.url + json.image_url tutorial.image_url + json.author tutorial.author + json.author_url tutorial.author_url + json.created_at tutorial.created_at + json.updated_at tutorial.updated_at + json.tags tutorial.tags do |tag| + json.name tag.name + end end |
