summaryrefslogtreecommitdiff
path: root/config/application.rb
diff options
context:
space:
mode:
authorFred Chasen <fchasen@gmail.com>2015-01-23 15:30:48 -0500
committerFred Chasen <fchasen@gmail.com>2015-01-23 15:30:48 -0500
commit13c4e25d6fd7ce4ae34340667d6ee5640ff925a1 (patch)
treef6c0e6bc6899efddbaef68cf6d88125c7a24b642 /config/application.rb
parent85b3c87b7f35843f26a9ead60f0bbfcb1d64dc2a (diff)
downloadgitlab-ce-13c4e25d6fd7ce4ae34340667d6ee5640ff925a1.tar.gz
Split up line and use single qoutes to declare Cors settings
Diffstat (limited to 'config/application.rb')
-rw-r--r--config/application.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb
index ac21d23294f..d5a69aa8a79 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -70,7 +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