Permalink
Browse files

Have to require active_support instead of defining own sum method for…

… rails interop.
  • Loading branch information...
1 parent eefa527 commit ad2d5c009ef8bd40d1b4fed1a5a000b7a9f47a43 Dhruv Bansal committed Aug 17, 2010
Showing with 1 addition and 8 deletions.
  1. +1 −1 lib/graphiterb/utils.rb
  2. +0 −7 lib/graphiterb/utils/extensions.rb
View
@@ -1,9 +1,9 @@
require 'rubygems'
require 'socket'
require 'configliere'
+require 'active_support'
require 'graphiterb/utils/log'
-require 'graphiterb/utils/extensions'
module Graphiterb
@@ -1,7 +0,0 @@
-class Array
-
- def sum
- inject(0.0) { |partial_sum, element| partial_sum += element }
- end
-
-end

0 comments on commit ad2d5c0

Please sign in to comment.