Skip to content

Commit

Permalink
Correctly reload code in Rails mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rsamoilov committed Jul 26, 2024
1 parent 834ec74 commit 16907f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/rage/code_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ def rails_mode_reload

@reloading = true
Rage.__router.reset_routes

unless Rage.autoload?(:Cable) # the `Cable` component is loaded
Rage::Cable.__router.reset
end
end

def reloading?
Expand Down

0 comments on commit 16907f5

Please sign in to comment.