Module: RailsDevelopmentBoost::Reloader::RoutesReloaderPatch
- Defined in:
- lib/rails_development_boost/reloader.rb
Instance Method Summary collapse
- #execute ⇒ Object
- #execute_if_updated ⇒ Object
- #force_execute! ⇒ Object
- #load(file, wrap = false) ⇒ Object
- #updated? ⇒ Boolean
Instance Method Details
#execute ⇒ Object
13 14 15 16 17 18 |
# File 'lib/rails_development_boost/reloader.rb', line 13 def execute if RailsDevelopmentBoost.reload_routes_on_any_change || @in_execute_if_updated || @force_execute || updated? @force_execute = false super end end |
#execute_if_updated ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/rails_development_boost/reloader.rb', line 24 def execute_if_updated old_in_execute_if_updated = @in_execute_if_updated @in_execute_if_updated = true super ensure @in_execute_if_updated = old_in_execute_if_updated end |
#force_execute! ⇒ Object
4 5 6 |
# File 'lib/rails_development_boost/reloader.rb', line 4 def force_execute! @force_execute = true end |
#load(file, wrap = false) ⇒ Object
20 21 22 |
# File 'lib/rails_development_boost/reloader.rb', line 20 def load(file, wrap = false) ActiveSupport::Dependencies.loading_routes_file(file) { super } end |
#updated? ⇒ Boolean
8 9 10 11 |
# File 'lib/rails_development_boost/reloader.rb', line 8 def updated? @force_execute = true if result = super result end |