From 581a0f3523210a6b998514fc53c7323e65bcb0a8 Mon Sep 17 00:00:00 2001 From: Cameron Walsh Date: Wed, 10 Jul 2013 22:47:24 +1000 Subject: [PATCH] Old hash syntax to work with Ruby 1.8.7 --- app/controllers/swagger_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/swagger_controller.rb b/app/controllers/swagger_controller.rb index 1715f4d..ca3e3ed 100644 --- a/app/controllers/swagger_controller.rb +++ b/app/controllers/swagger_controller.rb @@ -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 \ No newline at end of file +end