template/config/initializers/em-patches/faye.rb in grape-gen-0.0.5 vs template/config/initializers/em-patches/faye.rb in grape-gen-0.0.6
- old
+ new
@@ -1,4 +1,6 @@
require_relative 'redis_lazy_evaluated_pool'
-require_relative '../../../lib/faye_publisher'
+require_relative '../../../lib/faye/publisher'
-FayePublisher.redis = RedisLazyEvaluatedPool.pool_with_config(ApplicationSettings.faye.redis.to_hash.deep_symbolize_keys)
+Faye::Publisher.configure do |config|
+ config.redis = RedisLazyEvaluatedPool.pool_with_config(ApplicationSettings.faye.redis.to_hash.deep_symbolize_keys)
+end
\ No newline at end of file