Skip to content

Commit 69eb290

Browse files
committedMar 19, 2015
Allow Opal::Processor subclasses to be recognized
1 parent 7ece6e0 commit 69eb290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎lib/opal/sprockets/processor.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def self.load_asset_code(sprockets, name)
9191

9292
non_opal_assets = ([asset]+asset.dependencies).reject do |a|
9393
asset_attributes = ::Sprockets::AssetAttributes.new(sprockets, a.pathname)
94-
asset_attributes.engines.include?(::Opal::Processor)
94+
asset_attributes.engines.any? { |engine| engine.is_a? self }
9595
end
9696

9797
mark_as_loaded = non_opal_assets.map do |asset|

0 commit comments

Comments
 (0)
Please sign in to comment.