aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/railtie
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2010-08-04 22:22:06 +0200
committerPiotr Sarnacki <drogus@gmail.com>2010-09-03 22:59:12 +0200
commit8284fd38551c00c30cf89fa22d1afd503a08c516 (patch)
tree71a7ecc2879c088578bfe5d16072e1eb4eacfa00 /railties/lib/rails/railtie
parentd81267727770198f4aa0cefede042c8d0c638c59 (diff)
downloadrails-8284fd38551c00c30cf89fa22d1afd503a08c516.tar.gz
rails-8284fd38551c00c30cf89fa22d1afd503a08c516.tar.bz2
rails-8284fd38551c00c30cf89fa22d1afd503a08c516.zip
Get rid of static_paths method and instead configure paths for ActionDispatch::Static in initializers
Diffstat (limited to 'railties/lib/rails/railtie')
-rw-r--r--railties/lib/rails/railtie/configuration.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/lib/rails/railtie/configuration.rb b/railties/lib/rails/railtie/configuration.rb
index 96d9bd0da2..f09e3940cc 100644
--- a/railties/lib/rails/railtie/configuration.rb
+++ b/railties/lib/rails/railtie/configuration.rb
@@ -5,6 +5,7 @@ module Rails
class Configuration
def initialize
@@options ||= {}
+ @@static_asset_paths = ActiveSupport::OrderedHash.new
end
# This allows you to modify the application's middlewares from Engines.
@@ -65,6 +66,13 @@ module Rails
super || @@options.key?(name.to_sym)
end
+ # static_asset_paths is a Hash containing asset_paths
+ # with associated public folders, like:
+ # { "/" => "/app/public", "/my_engine" => "app/engines/my_engine/public" }
+ def static_asset_paths
+ @@static_asset_paths
+ end
+
private
def method_missing(name, *args, &blk)