module Compass::RailsImageFunctionPatch

Private Instance Methods

image_path_for_size(image_file) click to toggle source
Calls superclass method
# File lib/compass-rails/patches/3_1.rb, line 13
def image_path_for_size(image_file)
  begin
    file = ::Rails.application.assets.find_asset(image_file)
    return file
  rescue ::Sprockets::FileOutsidePaths
    return super(image_file)
  end
end