From 0d7d3a6e77c7f2f34236459bd1170951ded91bd5 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Tue, 3 Jan 2012 17:03:45 -0200 Subject: Add font_path helper method --- actionpack/lib/sprockets/helpers/rails_helper.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/lib/sprockets/helpers') diff --git a/actionpack/lib/sprockets/helpers/rails_helper.rb b/actionpack/lib/sprockets/helpers/rails_helper.rb index c34b3f6f26..177f7f6747 100644 --- a/actionpack/lib/sprockets/helpers/rails_helper.rb +++ b/actionpack/lib/sprockets/helpers/rails_helper.rb @@ -63,6 +63,11 @@ module Sprockets end alias_method :path_to_image, :image_path # aliased to avoid conflicts with an image_path named route + def font_path(source) + path_to_asset(source) + end + alias_method :path_to_font, :font_path # aliased to avoid conflicts with an font_path named route + def javascript_path(source) path_to_asset(source) end -- cgit v1.2.3