Merge fafc06dd6e into 38bc2e3c3a
This commit is contained in:
commit
2eddbdb614
38 changed files with 222 additions and 191 deletions
|
|
@ -12,7 +12,7 @@ class Ticket < ActiveRecord::Base
|
|||
|
||||
validates :price_cents, :price_currency, :title, presence: true
|
||||
|
||||
validates_numericality_of :price_cents, greater_than: 0
|
||||
validates :price_cents, numericality: { greater_than_or_equal_to: 0 }
|
||||
|
||||
def bought?(user)
|
||||
buyers.include?(user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue