summaryrefslogtreecommitdiff
path: root/app/controllers/api
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-01-02 11:10:08 -0700
committermo khan <mo@mokhan.ca>2015-01-02 11:10:08 -0700
commit856654e6af0106497c30333c0f4c3586388e4375 (patch)
tree219ec6222aacdfb3f333f7406375d41c926c7c2e /app/controllers/api
parent438b3b7a1450cde38f6e861ef257abd74ad4115d (diff)
remove use of respond_to in categories controller.
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v1/categories_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/api/v1/categories_controller.rb b/app/controllers/api/v1/categories_controller.rb
index feab720c..18332b89 100644
--- a/app/controllers/api/v1/categories_controller.rb
+++ b/app/controllers/api/v1/categories_controller.rb
@@ -1,10 +1,8 @@
module Api
module V1
class CategoriesController < ApiController
- respond_to :json
-
def index
- respond_with(@categories = Category.all)
+ @categories = Category.all
end
end
end