lib/mascot/extensions/partials_remover.rb in mascot-rails-0.1.14 vs lib/mascot/extensions/partials_remover.rb in mascot-rails-0.1.15

- old
+ new

@@ -4,10 +4,10 @@ class PartialsRemover # Partial rails prefix. PARTIAL_PREFIX = "_".freeze def process_resources(node) - node.resources.each do |r| + node.flatten.each do |r| r.node.remove if self.class.partial? r.asset.path # Looks like a smiley face, doesn't it? end end def self.partial?(path)