lib/anyway/rails/settings.rb in anyway_config-2.0.6 vs lib/anyway/rails/settings.rb in anyway_config-2.1.0

- old
+ new

@@ -7,12 +7,17 @@ rescue LoadError end module Anyway class Settings + class Future + setting :unwrap_known_environments, true + end + class << self attr_reader :autoload_static_config_path, :autoloader + attr_accessor :known_environments if defined?(::Zeitwerk) def autoload_static_config_path=(val) raise "Cannot setup autoloader after application has been initialized" if ::Rails.application.initialized? @@ -54,7 +59,8 @@ end end end self.default_config_path = ->(name) { ::Rails.root.join("config", "#{name}.yml") } + self.known_environments = %w[test development production] end end