docbrown/config/initializers/pusher.rb
rhymes 36786cf554
Rails 6: enable zeitwerk autoloader (#8766)
* More loading fixes

* Go back to OpenStruct

* Shuffle things around

* Remove obsolete patches and unneeded requires

* Disable config.add_autoload_paths_to_load_path

* Fix pre-require errors

* Config not reloader
2020-06-22 16:27:55 +02:00

13 lines
463 B
Ruby

require "pusher/push_notifications"
Pusher.app_id = ApplicationConfig["PUSHER_APP_ID"]
Pusher.key = ApplicationConfig["PUSHER_KEY"]
Pusher.secret = ApplicationConfig["PUSHER_SECRET"]
Pusher.cluster = ApplicationConfig["PUSHER_CLUSTER"]
Pusher.logger = Rails.logger
Pusher.encrypted = true
Pusher::PushNotifications.configure do |config|
config.instance_id = ApplicationConfig["PUSHER_BEAMS_ID"]
config.secret_key = ApplicationConfig["PUSHER_BEAMS_KEY"]
end