use new hash syntax

This commit is contained in:
Fred Chasen 2015-01-23 15:33:20 -05:00
parent 13c4e25d6f
commit 1f5ecf6c50

View file

@ -70,10 +70,10 @@ module Gitlab
config.middleware.use Rack::Cors do
allow do
origins '*'
resource '/api/*',
:headers => :any,
:methods => [:get, :post, :options, :put, :delete],
:expose => ['Link']
resource '/api/*',
headers: :any,
methods: [:get, :post, :options, :put, :delete],
expose: ['Link']
end
end