rails_live_reload
rails_live_reload copied to clipboard
Fix "config.enabled" not working
This is a proposed fix for #26.
The RailsLiveReload.enabled?
check is currently performed immediately when the Railtie class is interpreted, returning true
since it's the default value. However, due to the Rails application lifecycle, the state of RailsLiveReload.enabled?
will change by the time the initializers are run and it will return the value specified in the rails app initializer.
I tried moving the RailsLiveReload.enabled?
check into each initializer block and it seems to be fixing the issue.