Sha256: 99601bcbff7b9668817276d2a3ed149d0f0e78a2b0fd298e45794082c0217c85
Contents?: true
Size: 427 Bytes
Versions: 2
Compression:
Stored size: 427 Bytes
Contents
# frozen_string_literal: true module HeavyControl module ExplicitLoader class << self def apply load_consts # explicit loading for production ActionDispatch::Reloader.to_prepare do # handle reloading in dev mode HeavyControl::ExplicitLoader.load_consts end end def load_consts HeavyControl.config[:always_load].each(&:constantize) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
heavy_control-0.1.2 | lib/heavy_control/explicit_loader.rb |
heavy_control-0.1.1 | lib/heavy_control/explicit_loader.rb |