Skip to content

Commit 8f4d184

Browse files
committed
updated documentation for new options format, updated text to english
1 parent 7d15999 commit 8f4d184

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ Or install it yourself as:
2222

2323
Create `./config/initializer/swagger.rb` with lines:
2424

25-
GrapeSwaggerRails.discoveryUrl = "/swagger_doc.json"
26-
GrapeSwaggerRails.appName = 'Swagger'
27-
GrapeSwaggerRails.appUrl = 'http://swagger.wordnik.com'
25+
GrapeSwaggerRails.options.url = "/swagger_doc.json"
26+
GrapeSwaggerRails.options.app_name = 'Swagger'
27+
GrapeSwaggerRails.options.app_url = 'http://swagger.wordnik.com'
2828

29-
30-
## Нюансы
29+
## Known problems
3130

32-
Чтобы избежать проблемы с валидацией параметров в `POST` запросах, используе этот gem:
31+
To avoid problems with the validation parameters in `POST` request using this gem,
32+
please use the head version:
3333

3434
gem 'grape-swagger', :git=>'git://github.com/jhecking/grape-swagger.git'
3535

0 commit comments

Comments
 (0)