Permalink
Browse files

Revert "Remove postprocessors from unprocessed asset"

This reverts commit 811c572.
  • Loading branch information...
1 parent 2a8b52a commit 2a3e585c816502a5ed63670a0692fc5942b59528 @ndbroadbent committed Aug 19, 2013
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/sprockets/unprocessed_asset.rb
@@ -6,11 +6,10 @@ def initialize(environment, logical_path, pathname)
@environment = environment
context = environment.context_class.new(environment, logical_path, pathname)
attributes = environment.attributes_for(pathname)
- preprocessors = environment.preprocessors(content_type)
- # Remove all postprocessors and engines except ERB to return unprocessed source file
+ # Remove all engine processors except ERB to return unprocessed source file
allowed_engines = [Tilt::ERBTemplate]
- processors = preprocessors + (attributes.engines & allowed_engines)
+ processors = attributes.processors - (attributes.engines - allowed_engines)
@source = context.evaluate(pathname, :processors => processors)
@@ -21,7 +20,7 @@ def initialize(environment, logical_path, pathname)
allowed_engines << Sass::Rails::ScssTemplate if defined?(Sass::Rails::ScssTemplate)
allowed_engines << Sass::Rails::SassTemplate if defined?(Sass::Rails::SassTemplate)
allowed_engines << Less::Rails::LessTemplate if defined?(Less::Rails::LessTemplate)
- processors = preprocessors + (attributes.engines & allowed_engines)
+ processors = attributes.processors - (attributes.engines - allowed_engines)
@source = context.evaluate(pathname, :processors => processors)
end

0 comments on commit 2a3e585

Please sign in to comment.