Skip to content

Commit de0bd0a

Browse files
author
David Heinemeier Hansson
committed
Needed to guard against the gsub too
1 parent 2145999 commit de0bd0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/install/install.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
if (sprockets_manifest_path = Rails.root.join("app/assets/config/manifest.js")).exist?
66
append_to_file sprockets_manifest_path, %(//= link_tree ../builds\n)
7-
end
87

9-
say "Stop linking stylesheets automatically"
10-
gsub_file "app/assets/config/manifest.js", "//= link_directory ../stylesheets .css\n", ""
8+
say "Stop linking stylesheets automatically"
9+
gsub_file "app/assets/config/manifest.js", "//= link_directory ../stylesheets .css\n", ""
10+
end
1111

1212
if Rails.root.join(".gitignore").exist?
1313
append_to_file(".gitignore", %(\n/app/assets/builds/*\n!/app/assets/builds/.keep\n))

0 commit comments

Comments
 (0)