From db2eac20439af9cfd6ab590cdf9604b075e5a525 Mon Sep 17 00:00:00 2001 From: blahed Date: Thu, 24 Jan 2013 21:46:30 -0500 Subject: [PATCH] only require active_support/time and add configure block --- lib/von.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/von.rb b/lib/von.rb index daf4bf4..255b91c 100644 --- a/lib/von.rb +++ b/lib/von.rb @@ -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 @@ -15,6 +15,10 @@ def self.config Config end + def self.configure + yield(config) + end + def self.increment(field) counter = Counter.new(field)