README.md in grape-batch-2.2.0 vs README.md in grape-batch-2.2.1
- old
+ new
@@ -21,14 +21,15 @@
## Usage
### General considerations
This middleware is intended to be used with JSON Grape::API only.
### Rails apps
-1. Create an initializer 'config/initializers/grape-batch.rb'
+1. Create an initializer and add you configuration 'config/initializers/grape-batch.rb'
2. Add the middleware to the stack
```ruby
-# grape-batch.rb
+# config/application.rb
Rails.application.configure do
+ # rest of the file is hidden
config.middleware.use Grape::Batch::Base
end
```
### Sinatra and other Rack apps