Skip to content

Commit

Permalink
Old hash syntax to work with Ruby 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Walsh committed Jul 10, 2013
1 parent 974b63e commit 581a0f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/swagger_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ def set_headers
def index
set_headers
api_docs = ::ApiCanon::DocumentationStore.docos
render json: api_docs, serializer: ApiCanon::Swagger::ResourceListing
render :json => api_docs, :serializer => ApiCanon::Swagger::ResourceListing
end

def show
set_headers
api_doc = ::ApiCanon::DocumentationStore.fetch params[:id]
if api_doc
render json: api_doc, serializer: ApiCanon::Swagger::ApiDeclaration
render :json => api_doc, :serializer => ApiCanon::Swagger::ApiDeclaration
else
head :not_found
end
end

end
end
end

0 comments on commit 581a0f3

Please sign in to comment.