mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-10-29 23:32:35 +01:00
Remove syntactic sugar
This commit is contained in:
parent
be1dcce266
commit
2edf0fd19e
@ -19,7 +19,7 @@ end
|
||||
helpers do
|
||||
def quote
|
||||
@quote ||= begin
|
||||
ret = Quote.new(params).to_h
|
||||
ret = Quote.new(params).attributes
|
||||
ret[:rates].keep_if { |k, _| symbols.include?(k) } if symbols
|
||||
|
||||
ret
|
||||
|
@ -19,8 +19,6 @@ class Quote
|
||||
super.merge(rates: rates)
|
||||
end
|
||||
|
||||
alias_method :to_h, :attributes
|
||||
|
||||
private
|
||||
|
||||
def base=(base)
|
||||
|
Loading…
Reference in New Issue
Block a user