Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

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
Expand Up @@ -16,18 +16,18 @@ def set_headers
def index def index
set_headers set_headers
api_docs = ::ApiCanon::DocumentationStore.docos api_docs = ::ApiCanon::DocumentationStore.docos
render json: api_docs, serializer: ApiCanon::Swagger::ResourceListing render :json => api_docs, :serializer => ApiCanon::Swagger::ResourceListing

This comment has been minimized.

Copy link
@leondewey

leondewey Jul 10, 2013

Crap tried to be careful to use the hash rocket syntax to.

end end


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


end end
end end

0 comments on commit 581a0f3

Please sign in to comment.