Skip to content

Commit 5ceff9d

Browse files
committed
Return first css path when route index is nil
1 parent 847a74b commit 5ceff9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/critical_path_css/configuration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def penthouse_options
2626
end
2727

2828
def path_for_route(route)
29-
css_paths[routes.index(route)] || css_paths.first
29+
css_paths[routes.index(route).to_i]
3030
end
3131
end
3232
end

0 commit comments

Comments
 (0)