lib/compressible/assetable.rb in compressible-0.0.2.3 vs lib/compressible/assetable.rb in compressible-0.0.2.4

- old
+ new

@@ -4,11 +4,11 @@ def self.included(base) base.extend ClassMethods end module ClassMethods - + def javascripts(hash) hash.each do |to, paths| paths << {:to => to} javascript(*paths) end @@ -25,13 +25,10 @@ def javascript(*args) paths = args.dup options = paths.extract_options! to = asset_name(options[:to]) - raise "Please define a name for the cached javascript using ':to => :my_name'" unless to - add_to_config(:js, to, paths) - write_javascript(*args) unless config[:read_only] == true end alias_method :add_javascript, :javascript alias_method :js, :javascript \ No newline at end of file