Remove syntactic sugar

This commit is contained in:
Hakan Ensari 2015-09-16 10:33:22 +01:00
parent be1dcce266
commit 2edf0fd19e
2 changed files with 1 additions and 3 deletions

View File

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

View File

@ -19,8 +19,6 @@ class Quote
super.merge(rates: rates)
end
alias_method :to_h, :attributes
private
def base=(base)