@@ -57,7 +57,7 @@ class << self
5757 :javascript_compressor , :compressor_options , :css_compressor ,
5858 :css_compressor_options , :template_extension ,
5959 :template_extension_matcher , :allow_debugging ,
60- :rewrite_relative_paths , :public_root
60+ :rewrite_relative_paths , :public_root , :asset_roots
6161 attr_accessor :javascript_compressors , :css_compressors
6262 end
6363
@@ -109,6 +109,7 @@ def self.load_configuration(config, soft=false)
109109 set_template_namespace ( conf [ :template_namespace ] )
110110 set_template_extension ( conf [ :template_extension ] )
111111 set_public_root ( conf [ :public_root ] ) if conf [ :public_root ]
112+ set_asset_roots ( conf [ :asset_roots ] ) if conf [ :asset_roots ]
112113 symbolize_keys ( conf [ :stylesheets ] ) if conf [ :stylesheets ]
113114 symbolize_keys ( conf [ :javascripts ] ) if conf [ :javascripts ]
114115 check_for_deprecations
@@ -163,6 +164,10 @@ def self.package!(options={})
163164 def self . set_public_root ( public_root = nil )
164165 @public_root = public_root if public_root
165166 end
167+
168+ def self . set_asset_roots ( *roots )
169+ @asset_roots = [ ASSET_ROOT , roots ] . compact . flatten . uniq
170+ end
166171
167172 # Ensure that the JavaScript compressor is a valid choice.
168173 def self . set_javascript_compressor ( value )
0 commit comments