Skip to content

Commit

Permalink
rails3 compatibility bug: changed ActionView::Helpers::AssetTagHelper…
Browse files Browse the repository at this point in the history
…::STYLESHEETS_DIR to config.stylesheets_dir
  • Loading branch information
Mendel Looije committed Apr 2, 2010
1 parent 8aa797b commit 3e9679f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mobilized_styles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e9679f

Please sign in to comment.