From 8a05140dd89b17f2608c21b5533c30bf2c4032cf Mon Sep 17 00:00:00 2001 From: Samuel Kadolph Date: Wed, 15 Dec 2010 11:09:52 -0500 Subject: [PATCH] Quick fix for assets resources route and asset_path helper in controllers. --- actionpack/lib/abstract_controller/asset_paths.rb | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/actionpack/lib/abstract_controller/asset_paths.rb b/actionpack/lib/abstract_controller/asset_paths.rb index 9ca2fb7..842142a 100644 --- a/actionpack/lib/abstract_controller/asset_paths.rb +++ b/actionpack/lib/abstract_controller/asset_paths.rb @@ -4,6 +4,10 @@ module AbstractController included do config_accessor :asset_host, :asset_path, :assets_dir, :javascripts_dir, :stylesheets_dir + + def asset_path(*args) + args.size == 0 ? super : _routes.url_helpers.asset_path(*args) + end end end end \ No newline at end of file -- 1.7.0.4