./lib/lux_assets/base.rb in lux_assets-0.2.20 vs ./lib/lux_assets/base.rb in lux_assets-0.2.21

- old
+ new

@@ -25,10 +25,15 @@ def configure &block class_eval &block end + def bulk name=nil, &block + add_files :js, name, &block + add_files :css, name, &block + end + def js name=nil, &block add_files :js, name, &block end def css name=nil, &block @@ -163,10 +168,11 @@ def add_files ext, name=nil, &block if block_given? @files = [] @ext = ext class_eval &block - @assets[ext][@name] = @files + @files.reject! { |it| it.include?('/!') } + @assets[ext][@name] = @files.reject { || } else Asset.new ext, name end end end \ No newline at end of file