Skip to content

Commit

Permalink
only require active_support/time and add configure block
Browse files Browse the repository at this point in the history
  • Loading branch information
blahed committed Jan 25, 2013
1 parent 9ee305f commit db2eac2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/von.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
require 'von/period'
require 'von/version'

require 'active_support/all'
require 'redis'
require 'active_support/time'

module Von
def self.connection
Expand All @@ -15,6 +15,10 @@ def self.config
Config
end

def self.configure
yield(config)
end

def self.increment(field)
counter = Counter.new(field)

Expand Down

0 comments on commit db2eac2

Please sign in to comment.