Skip to content

Commit 4fcfd29

Browse files
committed
Cleaned up default config
1 parent 40fd482 commit 4fcfd29

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/grape-swagger-rails.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ def authenticate_with(&block)
1010
mattr_accessor :options
1111

1212
self.options = Options.new(
13+
1314
url: '/swagger_doc.json',
14-
api_key_name: 'api_key',
15-
api_key_type: 'query',
16-
api_auth: '', # 'basic'
17-
headers: {},
1815
app_name: 'Swagger',
1916
app_url: 'http://swagger.wordnik.com',
17+
18+
headers: {},
19+
20+
api_auth: '', # 'basic'
21+
api_key_name: 'api_key', # 'Authorization'
22+
api_key_type: 'query', # 'header'
23+
2024
authentication_proc: nil # Proc used as a controller before filter that returns a boolean
2125
)
2226

0 commit comments

Comments
 (0)