module Compass::RailsImageFunctionPatch

Private Instance Methods

image_path_for_size(image_file) click to toggle source
Calls superclass method
# File lib/compass-rails/patches/compass.rb, line 4
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