diff --git a/lib/compass/app_integration/rails/actionpack31/helpers.rb b/lib/compass/app_integration/rails/actionpack31/helpers.rb index 4c7998ca..f03ec796 100644 --- a/lib/compass/app_integration/rails/actionpack31/helpers.rb +++ b/lib/compass/app_integration/rails/actionpack31/helpers.rb @@ -9,7 +9,7 @@ module Compass::RailsImageFuctionPatch private def image_path(image_file) - if file = Rails.application.assets.find_asset(image_file) + if file = ::Rails.application.assets.find_asset(image_file) return file end super(image_file)