repair code reviews, improve environment configs
This commit is contained in:
parent
223a0eead9
commit
25c0046290
10 changed files with 65 additions and 67 deletions
|
|
@ -26,7 +26,7 @@ class Ticket < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def unpaid?(user)
|
||||
ticket_purchases.find_by(user: user, paid: false).present?
|
||||
ticket_purchases.unpaid.by_user(user).present?
|
||||
end
|
||||
|
||||
def total_price(user, paid: false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue