From de21762f10c0f7e9bd022c4260d4222d79e98018 Mon Sep 17 00:00:00 2001 From: tom hoefer Date: Sun, 27 Feb 2011 01:17:24 +0100 Subject: [PATCH] fixed --- actionpack/lib/abstract_controller/asset_paths.rb | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/actionpack/lib/abstract_controller/asset_paths.rb b/actionpack/lib/abstract_controller/asset_paths.rb index 9ca2fb7..6ef6cfe 100644 --- a/actionpack/lib/abstract_controller/asset_paths.rb +++ b/actionpack/lib/abstract_controller/asset_paths.rb @@ -4,6 +4,13 @@ module AbstractController included do config_accessor :asset_host, :asset_path, :assets_dir, :javascripts_dir, :stylesheets_dir + + alias_method(:asset_path_org, :asset_path) + + def asset_path(*args) + args.size == 0 ? asset_path_org : _routes.url_helpers.asset_path(*args) + end + end end end \ No newline at end of file -- 1.7.2.2