Permalink
Browse files

Fix singularization of package

  • Loading branch information...
1 parent 011618e commit 610b1cb605f5df7bc1a0fdc5e0582f9c6454c5c4 @dinedal committed Apr 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/jammit/packager.rb
View
@@ -47,7 +47,7 @@ def precache_all(output_dir=nil, base_url=nil)
end
end
@packages.keys.keep_if{|extension| ![:js, :css].include?(extension)}.each do |extension|
- cacheable(extension, output_dir).each {|p| cache(p, extension.to_s, self.send(:"pack_#{extension}", p), output_dir)}
+ cacheable(extension, output_dir).each {|p| cache(p, extension.to_s, self.send(:"pack_#{extension}s", p), output_dir)}
end
end
@@ -174,7 +174,7 @@ def create_packages(config)
def create_custom_packages(custom_assets)
results = {}
- custom_assets.each { |key, val| results[key] = create_packages(val)}
+ custom_assets.each { |key, val| results[:"#{key.to_s.singularize}"] = create_packages(val)}
results
end

0 comments on commit 610b1cb

Please sign in to comment.