Permalink
Browse files

Fix appending sprockets paths

  • Loading branch information...
1 parent 34d16e1 commit 78587a583520bd2c52c95bb25297c9e06084b2b1 @josh josh committed Jun 14, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 actionpack/lib/sprockets/railtie.rb
View
7 actionpack/lib/sprockets/railtie.rb
@@ -54,7 +54,12 @@ def asset_environment(app)
env = Sprockets::Environment.new(app.root.to_s)
env.static_root = File.join(app.root.join("public"), assets.prefix)
- env.paths.concat assets.paths
+
+ if env.respond_to?(:append_path)
+ assets.paths.each { |path| env.append_path(path) }
+ else
+ env.paths.concat assets.paths
+ end
env.logger = Rails.logger

0 comments on commit 78587a5

Please sign in to comment.