app/models/shoppe/payment.rb in shoppe-1.0.3 vs app/models/shoppe/payment.rb in shoppe-1.0.5
- old
+ new
@@ -9,10 +9,10 @@
# An associated payment (only applies to refunds)
#
# @return [Shoppe::Payment]
belongs_to :parent, :class_name => "Shoppe::Payment", :foreign_key => "parent_payment_id"
- # Validatiosn
+ # Validations
validates :amount, :numericality => true
validates :reference, :presence => true
validates :method, :presence => true
# Payments can have associated properties