stoplight.rb 261 B

123456
  1. require 'stoplight'
  2. Rails.application.reloader.to_prepare do
  3. Stoplight::Light.default_data_store = Stoplight::DataStore::Redis.new(RedisConfiguration.new.connection)
  4. Stoplight::Light.default_notifiers = [Stoplight::Notifier::Logger.new(Rails.logger)]
  5. end