Fix ruby deprecations

This commit is contained in:
Hakan Ensari 2020-05-02 17:09:03 +01:00
parent 52e57475ab
commit f8cca4731d

View File

@ -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?