use sendmail mailer in production

This commit is contained in:
albert
2013-02-23 18:17:42 -05:00
parent 7dd4d8a313
commit 8bf842ae99
4 changed files with 9 additions and 2 deletions

View File

@@ -396,7 +396,7 @@ class User < ActiveRecord::Base
def upload_limit
deleted_count = Post.for_user(id).deleted.count
pending_count = Post.for_user(id).pending.count
approved_count = Post.where("is_pending = false and is_deleted = false and uploader_id = ?", id).count
approved_count = Post.where("is_flagged = false and is_pending = false and is_deleted = false and uploader_id = ?", id).count
if base_upload_limit
limit = base_upload_limit - pending_count