about summary refs log tree commit diff
path: root/config/initializers/stoplight.rb
blob: 8c3c5755ae7eca52d83a15b9b01dbb8944aa3eaa (plain) (blame)
1
2
3
4
5
6
require 'stoplight'

Rails.application.reloader.to_prepare do
  Stoplight::Light.default_data_store = Stoplight::DataStore::Redis.new(RedisConfiguration.new.connection)
  Stoplight::Light.default_notifiers  = [Stoplight::Notifier::Logger.new(Rails.logger)]
end