diff options
| author | mo khan <mo@mokhan.ca> | 2014-11-21 16:57:33 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-11-21 16:57:33 -0700 |
| commit | 1cd098e291367cebc52e5a09f3e2e6fb7646de4e (patch) | |
| tree | 248038c6a342358c7b0c21c0fa90258b2f0313d1 /app/controllers | |
| parent | 51265f238e29b224a85510c96d944dbec0449683 (diff) | |
add specs for categories controller.
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/api/v2/categories_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v2/categories_controller.rb b/app/controllers/api/v2/categories_controller.rb index 86454855..365544b6 100644 --- a/app/controllers/api/v2/categories_controller.rb +++ b/app/controllers/api/v2/categories_controller.rb @@ -2,7 +2,7 @@ module Api module V2 class CategoriesController < ApplicationController def show - @category = Category.find(params[:id]) + @category = @categories.find(params[:id]) end end end |
