Fix bug.
This commit is contained in:
parent
e636be4b4c
commit
8cb9be6303
|
@ -51,7 +51,7 @@ all_template.each do |folder|
|
||||||
texts = File.read(filename).force_encoding('UTF-8')
|
texts = File.read(filename).force_encoding('UTF-8')
|
||||||
new_texts = texts.gsub(/<.*javascript_include_tag.*bootstrap.*>/,"<%= javascript_include_tag \"bootstrap.min\"%>")
|
new_texts = texts.gsub(/<.*javascript_include_tag.*bootstrap.*>/,"<%= javascript_include_tag \"bootstrap.min\"%>")
|
||||||
bootstrap_count = 0
|
bootstrap_count = 0
|
||||||
new_texts.gsub("<%= javascript_include_tag \"bootstrap.min\"%>"){|t|
|
new_texts = new_texts.gsub("<%= javascript_include_tag \"bootstrap.min\"%>"){|t|
|
||||||
bootstrap_count += 1
|
bootstrap_count += 1
|
||||||
(bootstrap_count > 1) ? "" : t
|
(bootstrap_count > 1) ? "" : t
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue