Sha256: 52a9b0fb41228beece324fd007b149dea373500dad9952e9811d7ac34751c796
Contents?: true
Size: 668 Bytes
Versions: 1
Compression:
Stored size: 668 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' do if WebValve.enabled? WebValve.config_paths.each do |root| path = root.join('config', 'webvalve.rb').to_s load path if File.exist?(path) end config.after_initialize do WebValve.setup end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webvalve-0.9.7 | lib/webvalve/railtie.rb |