Merged r4094 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4153 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
4593d97472
commit
b35bc6d93c
1 file changed
+1
-1
@@ -109,7 +109,7 @@ module Engines::RailsExtensions::AssetHelpers
|
|||||||
# Returns the publicly-addressable relative URI for the given asset, type and plugin
|
# Returns the publicly-addressable relative URI for the given asset, type and plugin
|
||||||
def self.plugin_asset_path(plugin_name, type, asset)
|
def self.plugin_asset_path(plugin_name, type, asset)
|
||||||
raise "No plugin called '#{plugin_name}' - please use the full name of a loaded plugin." if Engines.plugins[plugin_name].nil?
|
raise "No plugin called '#{plugin_name}' - please use the full name of a loaded plugin." if Engines.plugins[plugin_name].nil?
|
||||||
"/#{Engines.plugins[plugin_name].public_asset_directory}/#{type}/#{asset}"
|
"#{ActionController::Base.relative_url_root}/#{Engines.plugins[plugin_name].public_asset_directory}/#{type}/#{asset}"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user