mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-10 01:24:19 +01:00
fix bundle_fu to handle relative roots
applied pending patches from bundle_fu issues 3 and 6 reverted previous workaround in standard.css for relative roots
This commit is contained in:
parent
d41c369f09
commit
48fb00b24e
3 changed files with 38 additions and 31 deletions
5
vendor/plugins/bundle-fu/lib/bundle_fu.rb
vendored
5
vendor/plugins/bundle-fu/lib/bundle_fu.rb
vendored
|
|
@ -9,10 +9,11 @@ class BundleFu
|
|||
def bundle_files(filenames=[])
|
||||
output = ""
|
||||
filenames.each{ |filename|
|
||||
output << "/* --------- #{filename} --------- */ "
|
||||
filename_no_root = filename.sub(/^#{ActionController::Base.relative_url_root}/, '')
|
||||
output << "/* --------- #{filename} - #{filename_no_root} --- ------ */ "
|
||||
output << "\n"
|
||||
begin
|
||||
content = (File.read(File.join(RAILS_ROOT, "public", filename)))
|
||||
content = (File.read(File.join(RAILS_ROOT, "public", filename_no_root)))
|
||||
rescue
|
||||
output << "/* FILE READ ERROR! */"
|
||||
next
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue