Permalink
Browse files

rails3 compatibility bug: changed ActionView::Helpers::AssetTagHelper…

…::STYLESHEETS_DIR to config.stylesheets_dir
  • Loading branch information...
1 parent 8aa797b commit 3e9679fa3bdbb1f6f0f12a62f0b9f3e7835e99bf Mendel Looije committed Apr 2, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mobilized_styles.rb
@@ -59,8 +59,8 @@ def stylesheet_link_tag_with_mobilization(*sources)
mobilized_sources << source
for possible_source in possible_sources
- path = File.join(ActionView::Helpers::AssetTagHelper::STYLESHEETS_DIR,"#{possible_source}.css")
- sass_path = File.join(ActionView::Helpers::AssetTagHelper::STYLESHEETS_DIR,"sass","#{possible_source}.sass")
+ path = File.join(config.stylesheets_dir,"#{possible_source}.css")
+ sass_path = File.join(config.stylesheets_dir,"sass","#{possible_source}.sass")
mobilized_sources << possible_source if File.exist?(path) || File.exist?(sass_path)
end
end

0 comments on commit 3e9679f

Please sign in to comment.