lib/rack/bug/panels/mustache_panel.rb in mustache-0.99.6 vs lib/rack/bug/panels/mustache_panel.rb in mustache-0.99.7
- old
+ new
@@ -63,10 +63,10 @@
"mustache"
end
# The string used for our tab in Rack::Bug's navigation bar
def heading
- "{{%.2fms}}" % self.class.times.values.inject(0.0) do |sum, obj|
+ "{{%.2fms}}" % self.class.times.values.reduce(0.0) do |sum, obj|
sum + obj
end
end
# The content of our Rack::Bug panel