Tenantify::Sidekiq
This gem provides a client and a server middlewares for Sidekiq to work with the tenantify gem
Installation
Add this line to your application's Gemfile:
gem 'tenantify-sidekiq'
And then execute:
$ bundle
Usage
Just add the client and the server middlewares to its respective middleware chains:
require 'tenantify-sidekiq'
Sidekiq.configure_client do |config|
config.client_middleware do |chain|
chain.add Tenantify::Sidekiq::Middlewares::Client
end
end
Sidekiq.configure_server do |config|
config.server_middleware do |chain|
chain.add Tenantify::Sidekiq::Middlewares::Server
end
end
Contributing
- Fork it ( https://github.com/[my-github-username]/tenantify-sidekiq/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request