lib/tally/increment.rb in tally-1.0.2 vs lib/tally/increment.rb in tally-2.0.0

- old
+ new

@@ -5,13 +5,13 @@ def increment(by = 1) Tally.redis do |conn| conn.multi do |pipeline| pipeline.incrby(redis_key, by) - pipeline.expire(redis_key, Tally.config.ttl) if Tally.config.ttl.present? + pipeline.expire(redis_key, Tally.config.ttl.to_i) if Tally.config.ttl.present? pipeline.sadd(daily_key, simple_key) - pipeline.expire(daily_key, Tally.config.ttl) if Tally.config.ttl.present? + pipeline.expire(daily_key, Tally.config.ttl.to_i) if Tally.config.ttl.present? end end end def self.increment(key, record = nil, by = 1)