summaryrefslogtreecommitdiff
path: root/app/controllers
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/controllers
parent51265f238e29b224a85510c96d944dbec0449683 (diff)
add specs for categories controller.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/v2/categories_controller.rb2
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