Sha256: 69c87b072d4ce9021206c01813d21c0e1ba64809960a207f29a7026a63d7f070
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
# frozen_string_literal: true module Anyway # :nodoc: DEFAULT_CONFIGS_PATH = "config/configs" class Railtie < ::Rails::Railtie # :nodoc: # Add settings to Rails config config.anyway_config = Anyway::Settings ActiveSupport.on_load(:before_configuration) do config.anyway_config.autoload_static_config_path = DEFAULT_CONFIGS_PATH end # Remove `autoload_static_config_path` from Rails `autoload_paths` # since we use our own autoloading mechanism initializer "anyway_config.cleanup_autoload" do Anyway::Settings.cleanup_autoload_paths end # Make sure loaders are not changed in runtime config.after_initialize { Anyway.loaders.freeze } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
anyway_config-2.0.0.rc1 | lib/anyway/railtie.rb |