From fcd0708e9a85b5d2d4a3a3f38bd3dd32c958b802 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Sat, 6 Apr 2019 17:22:38 +0200 Subject: [PATCH] Fixed bug: Auto reloading in development Rails env is broken. --- lib/mixin/required_sub_paths.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mixin/required_sub_paths.rb b/lib/mixin/required_sub_paths.rb index 38eb22b13..ef558b2ba 100644 --- a/lib/mixin/required_sub_paths.rb +++ b/lib/mixin/required_sub_paths.rb @@ -32,7 +32,7 @@ module Mixin sub_paths.push(sub_path) elsif sub_path =~ /\A(.*)\.rb\z/ require_path = $1 - require(require_path) + require_dependency(require_path) end end