Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Default cache to nil in param, then use || to default to hash.

  • Loading branch information...
commit aca076909e121d6fc11b270871e7ff737145c189 1 parent 3f3db9c
@jnunemaker authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/flipper/adapters/memoized.rb
View
4 lib/flipper/adapters/memoized.rb
@@ -9,9 +9,9 @@ class Memoized < Decorator
attr_reader :cache
# Public
- def initialize(adapter, cache = {})
+ def initialize(adapter, cache = nil)
super(adapter)
- @cache = cache
+ @cache = cache || {}
end
# Public: Turns local caching on/off.
Please sign in to comment.
Something went wrong with that request. Please try again.