From daabc12c654f9b62597fe2d66bcc63d65aee432b Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Mon, 15 Apr 2013 18:32:11 +0600 Subject: [PATCH] [#42] fix error with no json format --- app/controllers/api/v1/issues_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/api/v1/issues_controller.rb b/app/controllers/api/v1/issues_controller.rb index f575c363d..f84c1bba9 100644 --- a/app/controllers/api/v1/issues_controller.rb +++ b/app/controllers/api/v1/issues_controller.rb @@ -1,5 +1,6 @@ # -*- encoding : utf-8 -*- class Api::V1::IssuesController < Api::V1::BaseController + respond_to :json before_filter :authenticate_user! skip_before_filter :authenticate_user!, :only => [:show] if APP_CONFIG['anonymous_access'] @@ -32,6 +33,7 @@ class Api::V1::IssuesController < Api::V1::BaseController end def show + respond_with @issue end def create