lib/storyblok/cache/redis.rb in storyblok-2.0.4 vs lib/storyblok/cache/redis.rb in storyblok-2.0.5

- old
+ new

@@ -4,11 +4,11 @@ DEFAULT_CONFIGURATION = { ttl: 60 * 60 * 24 } def initialize(*args) - options = args.extract_options! + options = args.last.is_a?(::Hash) ? args.pop : {} @redis = options.delete(:redis) || begin if defined?(::Redis) ::Redis.current else @@ -46,6 +46,6 @@ end end end end -end \ No newline at end of file +end