diff options
| author | mo khan <mo@mokhan.ca> | 2015-01-02 11:10:08 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-01-02 11:10:08 -0700 |
| commit | 856654e6af0106497c30333c0f4c3586388e4375 (patch) | |
| tree | 219ec6222aacdfb3f333f7406375d41c926c7c2e /app/controllers/api/v1 | |
| parent | 438b3b7a1450cde38f6e861ef257abd74ad4115d (diff) | |
remove use of respond_to in categories controller.
Diffstat (limited to 'app/controllers/api/v1')
| -rw-r--r-- | app/controllers/api/v1/categories_controller.rb | 4 |
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 |
