lib/generators/recommendable/templates/initializer.rb in recommendable-1.1.3 vs lib/generators/recommendable/templates/initializer.rb in recommendable-1.1.4

- old
+ new

@@ -9,5 +9,20 @@ <% unless options.redis_socket %># <% end %>Recommendable.redis = Redis.new(:sock => "<%= options.redis_socket %>") # Tell Redis which database to use (usually between 0 and 15). The default of 0 # is most likely okay unless you have another application using that database. # Recommendable.redis.select "0" + +# If using Sidekiq, uncomment the following or place it in config/initializers/sidekiq.rb: +# Sidekiq.configure_server do |config| +# require 'sidekiq/middleware/server/unique_jobs' +# config.server_middleware do |chain| +# chain.add Sidekiq::Middleware::Server::UniqueJobs +# end +# end +# +# Sidekiq.configure_client do |config| +# require 'sidekiq/middleware/client/unique_jobs' +# config.client_middleware do |chain| +# chain.add Sidekiq::Middleware::Client::UniqueJobs +# end +# end \ No newline at end of file