Skip to content

Commit

Permalink
Merge pull request #301 from chrisdebruin/fix-lazy-loading-dev
Browse files Browse the repository at this point in the history
Memory leak in development mode
  • Loading branch information
tagliala authored Dec 19, 2023
2 parents b16c3ec + c55d045 commit 6f9cdc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/route_translator/translator/route_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def add(old_name, named_route_collection)
__send__(Translator.route_name_for(args, old_name, suffix, self), *args)
end

next unless ENV.fetch('RAILS_ENV', nil) == 'test'

TEST_CASE_HOOKS.each do |test_case_hook|
ActiveSupport.on_load(test_case_hook) do
include helper_container
Expand Down

0 comments on commit 6f9cdc8

Please sign in to comment.