Skip to content
Browse files

Fix bundled source original encoding

  • Loading branch information...
1 parent c0ebbd8 commit ca7016b9ed7b95339c9aef6054e83a203c5eb91d @josh josh committed Apr 8, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/sprockets/bundled_asset.rb
View
4 lib/sprockets/bundled_asset.rb
@@ -17,10 +17,8 @@ def initialize(environment, logical_path, pathname)
@required_assets = @processed_asset.required_assets
@dependency_paths = @processed_asset.dependency_paths
- @source = ""
-
# Explode Asset into parts and gather the dependency bodies
- to_a.each { |dependency| @source << dependency.to_s }
+ @source = to_a.map { |dependency| dependency.to_s }.join
# Run bundle processors on concatenated source
context = environment.context_class.new(environment, logical_path, pathname)

0 comments on commit ca7016b

Please sign in to comment.
Something went wrong with that request. Please try again.