rails-routes-js-utils 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ module Rails
|
|
33
33
|
compiled_regex = Regexp.new(compiled_match.join());
|
34
34
|
compiled_replace << ";}";
|
35
35
|
|
36
|
-
if
|
36
|
+
if route.name
|
37
37
|
"addRouteToEnv({name: '#{route.name}', path: #{compiled_regex.inspect} , reqs: #{reqs}, replace: #{compiled_replace.join()}});"
|
38
38
|
end
|
39
39
|
end.join("\n");
|