mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 11:02:30 +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
|
def end_of_day_quote
|
||||||
@end_of_day_quote ||= begin
|
@end_of_day_quote ||= begin
|
||||||
query = Query.build(params)
|
query = Query.build(params)
|
||||||
quote = Quote::EndOfDay.new(query)
|
quote = Quote::EndOfDay.new(**query)
|
||||||
quote.perform
|
quote.perform
|
||||||
halt 404 if quote.not_found?
|
halt 404 if quote.not_found?
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ helpers do
|
|||||||
def interval_quote
|
def interval_quote
|
||||||
@interval_quote ||= begin
|
@interval_quote ||= begin
|
||||||
query = Query.build(params)
|
query = Query.build(params)
|
||||||
quote = Quote::Interval.new(query)
|
quote = Quote::Interval.new(**query)
|
||||||
quote.perform
|
quote.perform
|
||||||
halt 404 if quote.not_found?
|
halt 404 if quote.not_found?
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user