Sha256: 2d0be63d16ad0b252ae48896dff8cf60e730347792397147eb73b9284b1d21ce
Contents?: true
Size: 546 Bytes
Versions: 9
Compression:
Stored size: 546 Bytes
Contents
module WebValve class Railtie < ::Rails::Railtie initializer 'webvalve.set_autoload_paths', before: :set_autoload_paths do |app| if WebValve.enabled? WebValve.config_paths << app.root WebValve.config_paths.each do |root| app.config.eager_load_paths << root.join('webvalve').to_s end end end initializer 'webvalve.setup', after: :load_config_initializers do if WebValve.enabled? config.after_initialize do WebValve.setup end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems