aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/sprockets
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-01-03 17:03:45 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2012-01-03 17:05:43 -0200
commit0d7d3a6e77c7f2f34236459bd1170951ded91bd5 (patch)
tree08f3614306f583afc37a50407c6fda9d4e3a09ea /actionpack/lib/sprockets
parenteafdf6c9bd22706941456a6bacb9f2fff8d14104 (diff)
downloadrails-0d7d3a6e77c7f2f34236459bd1170951ded91bd5.tar.gz
rails-0d7d3a6e77c7f2f34236459bd1170951ded91bd5.tar.bz2
rails-0d7d3a6e77c7f2f34236459bd1170951ded91bd5.zip
Add font_path helper method
Diffstat (limited to 'actionpack/lib/sprockets')
-rw-r--r--actionpack/lib/sprockets/helpers/rails_helper.rb5
1 files changed, 5 insertions, 0 deletions
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