diff --git a/lib/compass/app_integration/rails/actionpack31/helpers.rb b/lib/compass/app_integration/rails/actionpack31/helpers.rb index 819e4242..f37acdf8 100644 --- a/lib/compass/app_integration/rails/actionpack31/helpers.rb +++ b/lib/compass/app_integration/rails/actionpack31/helpers.rb @@ -9,10 +9,12 @@ module Compass::RailsImageFunctionPatch private def image_path_for_size(image_file) - if file = ::Rails.application.assets.find_asset(image_file) + begin + file = ::Rails.application.assets.find_asset(image_file) return file + rescue ::Sprockets::FileOutsidePaths + return super(image_file) end - super(image_file) end end