lib/redis/base_object.rb in redis-objects-1.2.0 vs lib/redis/base_object.rb in redis-objects-1.2.1

- old
+ new

@@ -21,9 +21,11 @@ redis.expireat(@key, @options[:expireat].to_i) if redis.ttl(@key) < 0 end end def allow_expiration(&block) - block.call.tap { set_expiration } + result = block.call + set_expiration + result end end end