stoplight.rb 292 B

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