From a756d9a025d631db9462fb0b6aaddf8e20c3113a Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Thu, 2 Apr 2020 14:52:56 +0100 Subject: [PATCH] Refactor currency#between --- lib/currency.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/currency.rb b/lib/currency.rb index 179b12f..32d58ed 100644 --- a/lib/currency.rb +++ b/lib/currency.rb @@ -17,8 +17,8 @@ class Currency < Sequel::Model(Day.currencies) def between(interval) case interval.last - interval.first - when 0..90 then super when 91.. then super.sample('week') + else super end end