[#42] fix error with no json format

This commit is contained in:
Alexander Machehin 2013-04-15 18:32:11 +06:00
parent 83f79d6ca2
commit daabc12c65
1 changed files with 2 additions and 0 deletions

View File

@ -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