Permalink
Browse files

Fixed bug where it counts all orders, rather than orders that complet…

…e the amazon checkout process
  • Loading branch information...
1 parent 614a3b1 commit 2378e5e963ed6b6b68fa656758b0a6dd3d8b5d10 @Jarred-Sumner Jarred-Sumner committed Oct 26, 2012
Showing with 1,350 additions and 4 deletions.
  1. +0 −3 Gemfile.lock
  2. +1 −1 app/models/order.rb
  3. +1,349 −0 selfstarter.sublime-workspace
View
@@ -46,8 +46,6 @@ GEM
eventmachine (1.0.0)
execjs (1.4.0)
multi_json (~> 1.0)
- foreman (0.60.2)
- thor (>= 0.13.6)
hike (1.2.1)
i18n (0.6.1)
journey (1.0.4)
@@ -126,7 +124,6 @@ PLATFORMS
DEPENDENCIES
amazon_flex_pay
coffee-rails (~> 3.2.1)
- foreman
jquery-rails
pg
rails (= 3.2.8)
View
@@ -57,7 +57,7 @@ def self.percent
# 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
Oops, something went wrong.

0 comments on commit 2378e5e

Please sign in to comment.