README.md in grape-batch-1.0.4 vs README.md in grape-batch-1.1.0

- old
+ new

@@ -38,17 +38,25 @@ require 'grape/batch' use Grape::Batch::Base ``` ### Settings -You can customize the middleware with a hash. +Override any of these defaults in config/initializers/grape_batch.rb: +```ruby +Grape::Batch.configure do |config| + config.limit = 10 + config.path = '/batch' + config.formatter = Grape::Batch::Response +end +``` + | Argument | Type | Default | Description | :---: | :---: | :---: | :---: -| :limit | integer | 10 | Maximum number of batched requests allowed by the middleware -| :path | string | /batch | Route on which the middleware is mounted on -| :formatter | class | Grape::Batch::Response | The response formatter to use +| limit | integer | 10 | Maximum number of batched requests allowed by the middleware +| path | string | /batch | Route on which the middleware is mounted on +| formatter | class | Grape::Batch::Response | The response formatter to use #### Response formatter #####Default format (success) ```ruby {success: RESOURCE_RESPONSE} @@ -93,6 +101,6 @@ 1. Fork it ( https://github.com/c4mprod/grape-batch/fork ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) -5. Create a new Pull Request \ No newline at end of file +5. Create a new Pull Request