mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-10-29 23:32:35 +01:00
Fix ruby deprecations
This commit is contained in:
parent
52e57475ab
commit
f8cca4731d
@ -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?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user