README.md in api_analytics-1.0.3 vs README.md in api_analytics-1.0.4
- old
+ new
@@ -29,21 +29,21 @@
module RailsMiddleware
class Application < Rails::Application
config.load_defaults 6.1
config.api_only = true
- config.middleware.use ::Analytics::Middleware, <api_key> # Add middleware
+ config.middleware.use ::Analytics::Rails, <api_key> # Add middleware
end
end
```
#### Sinatra
```ruby
require 'sinatra'
require 'api_analytics'
-use Analytics::Middleware, <api_key>
+use Analytics::Sinatra, <api_key>
before do
content_type 'application/json'
end