public
Description: A Rails plugin to make it easy to use YUI on Rails instead of (or along with, I suppose) Prototype and scriptaculous
Clone URL: git://github.com/rubaidh/yui_on_rails.git
Choose the minified versions or the debug versions depending upon the 
Rails environment.
mathie (author)
Fri Aug 08 05:19:21 -0700 2008
commit  d03f6829c57ef723d4ff6f903e82080ca545d6c2
tree    23a4069de62d74197ff5c4dc5a4cb14d87ce5900
parent  c1f23dd7511f7c0a61a66a10d9d549bdc8c09b3f
...
112
113
114
115
 
116
117
118
...
168
169
170
171
 
172
173
174
...
112
113
114
 
115
116
117
118
...
168
169
170
 
171
172
173
174
0
@@ -112,7 +112,7 @@ module ActionView # :nodoc:
0
           components = components.map { |c| c.to_s }
0
 
0
           paths = yui_js_components_with_dependencies(components).map do |component|
0
- yui_javascript_path(component)
0
+ yui_javascript_path(component, Rails.env.development? ? "debug" : "min")
0
           end
0
 
0
           component_stylesheets = components.select do |component|
0
@@ -168,7 +168,7 @@ module ActionView # :nodoc:
0
           components = components.map { |c| c.to_s }
0
 
0
           paths = yui_css_components_with_dependencies(components).map do |component|
0
- yui_stylesheet_path(component)
0
+ yui_stylesheet_path(component, Rails.env.development? ? nil : "min")
0
           end
0
           paths << options
0
           stylesheet_link_tag(*paths)

Comments

    No one has commented yet.