summaryrefslogtreecommitdiff
path: root/www/rubygem-ramaze/files/xhtml.rb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www/rubygem-ramaze/files/xhtml.rb.patch')
-rw-r--r--www/rubygem-ramaze/files/xhtml.rb.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/rubygem-ramaze/files/xhtml.rb.patch b/www/rubygem-ramaze/files/xhtml.rb.patch
new file mode 100644
index 000000000000..94f19c6009a5
--- /dev/null
+++ b/www/rubygem-ramaze/files/xhtml.rb.patch
@@ -0,0 +1,20 @@
+--- lib/ramaze/helper/xhtml.rb.orig 2009-11-04 20:13:31.180694249 +0800
++++ lib/ramaze/helper/xhtml.rb 2009-11-04 20:18:00.000000000 +0800
+@@ -8,7 +8,7 @@
+
+ def css(name, media = 'screen', options = {})
+ if options.empty?
+- LINK_TAG % ["/css/#{name}.css", media]
++ LINK_TAG % ["#{Ramaze.options.prefix}/css/#{name}.css", media]
+ elsif options[:only].to_s.downcase == 'ie'
+ "<!--[if IE]>#{css(name, media)}<![endif]-->"
+ end
+@@ -22,7 +22,7 @@
+ if name =~ /^http/ # consider it external full url
+ SCRIPT_TAG % name
+ else
+- SCRIPT_TAG % "/js/#{name}.js"
++ SCRIPT_TAG % "#{Ramaze.options.prefix}/js/#{name}.js"
+ end
+ end
+