lib/js_routes/configuration.rb in js-routes-2.2.7 vs lib/js_routes/configuration.rb in js-routes-2.2.8

- old
+ new

@@ -73,10 +73,10 @@ def source_file File.dirname(__FILE__) + "/../" + default_file_name end def output_file - webpacker_dir = pathname('app', 'javascript') + webpacker_dir = defined?(Webpacker) ? Webpacker.config.source_path : pathname('app', 'javascript') sprockets_dir = pathname('app','assets','javascripts') file_name = file || default_file_name sprockets_file = sprockets_dir.join(file_name) webpacker_file = webpacker_dir.join(file_name) !Dir.exist?(webpacker_dir) && defined?(::Sprockets) ? sprockets_file : webpacker_file