Fixed bug where it counts all orders, rather than orders that complete the amazon checkout process

This commit is contained in:
Jarred Sumner
2012-10-26 15:13:50 -07:00
parent 614a3b14d7
commit 2378e5e963
3 changed files with 1350 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ class Order < ActiveRecord::Base
# See what it looks like when you have some backers! Drop in a number instead of Order.count
def self.current
Order.count
Order.where("token != ? OR token != ?", "", nil).count
end
def self.revenue