From f8cca4731d3fb8caf5db51a80bfbe9a5f7709948 Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Sat, 2 May 2020 17:09:03 +0100 Subject: [PATCH] Fix ruby deprecations --- lib/web/server.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/web/server.rb b/lib/web/server.rb index 0883522..e4611e0 100644 --- a/lib/web/server.rb +++ b/lib/web/server.rb @@ -33,7 +33,7 @@ helpers do def end_of_day_quote @end_of_day_quote ||= begin query = Query.build(params) - quote = Quote::EndOfDay.new(query) + quote = Quote::EndOfDay.new(**query) quote.perform halt 404 if quote.not_found? @@ -44,7 +44,7 @@ helpers do def interval_quote @interval_quote ||= begin query = Query.build(params) - quote = Quote::Interval.new(query) + quote = Quote::Interval.new(**query) quote.perform halt 404 if quote.not_found?