Rate#for will now return the most current rate for the user matching the parameters. #1920

This commit is contained in:
Eric Davis committed 2009-01-16 16:06:12 -08:00
1 parent b59c87b1f6
commit 6a211c3e5e
2 files changed
+21 -4

No files matched your search

+3 -1
View File
@@ -33,6 +33,8 @@ class Rate < ActiveRecord::Base
date
],
:order => 'date_in_effect DESC')
nil
return nil if rates.empty?
return rates[0].amount
end
end