summaryrefslogtreecommitdiff
path: root/app/views/api
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-11-21 16:57:33 -0700
committermo khan <mo@mokhan.ca>2014-11-21 16:57:33 -0700
commit1cd098e291367cebc52e5a09f3e2e6fb7646de4e (patch)
tree248038c6a342358c7b0c21c0fa90258b2f0313d1 /app/views/api
parent51265f238e29b224a85510c96d944dbec0449683 (diff)
add specs for categories controller.
Diffstat (limited to 'app/views/api')
-rw-r--r--app/views/api/v2/categories/index.json.jbuilder3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/api/v2/categories/index.json.jbuilder b/app/views/api/v2/categories/index.json.jbuilder
new file mode 100644
index 00000000..4cec0c2e
--- /dev/null
+++ b/app/views/api/v2/categories/index.json.jbuilder
@@ -0,0 +1,3 @@
+json.categories @categories do |category|
+ json.partial! category, category: category
+end