lib/compressible/assetable.rb in compressible-0.0.2.4 vs lib/compressible/assetable.rb in compressible-0.0.2.6
- old
+ new
@@ -25,21 +25,23 @@
def javascript(*args)
paths = args.dup
options = paths.extract_options!
to = asset_name(options[:to])
- add_to_config(:js, to, paths)
+ add_to_config(:js, to, paths.flatten)
write_javascript(*args) unless config[:read_only] == true
+ to
end
alias_method :add_javascript, :javascript
alias_method :js, :javascript
def stylesheet(*args)
paths = args.dup
options = paths.extract_options!
to = asset_name(options[:to])
- add_to_config(:css, to, paths)
+ add_to_config(:css, to, paths.flatten)
write_stylesheet(*args) unless config[:read_only] == true
+ to
end
alias_method :add_stylesheet, :stylesheet
alias_method :css, :stylesheet
end
\ No newline at end of file