mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-22 02:52:49 +01:00
parent
0931da3add
commit
8d007357b1
@ -9,7 +9,7 @@ class Snapshot
|
||||
|
||||
def quote
|
||||
self.date = if date
|
||||
Currency.where{date <= date}.order(:date).last.date
|
||||
Currency.where("date <= '#{date}'").order(:date).last.date
|
||||
else
|
||||
Currency.last_date
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user