Skip to content
Browse files

No need to capture block in fetch.

  • Loading branch information...
1 parent a364ccc commit 21eca8e45ea433f9c9c54a1e06da13d641f0f1e9 @jnunemaker committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/adapter/defaults.rb
View
2 lib/adapter/defaults.rb
@@ -1,6 +1,6 @@
module Adapter
module Defaults
- def fetch(key, value=nil, &block)
+ def fetch(key, value=nil)
read(key) || begin
value = block_given? ? yield(key) : value
read(key) || value

0 comments on commit 21eca8e

Please sign in to comment.
Something went wrong with that request. Please try again.