From 1cd098e291367cebc52e5a09f3e2e6fb7646de4e Mon Sep 17 00:00:00 2001 From: mo khan Date: Fri, 21 Nov 2014 16:57:33 -0700 Subject: add specs for categories controller. --- app/controllers/api/v2/categories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/api') 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 -- cgit v1.2.3