Refactor admin donation pages, fix errors
All checks were successful
continuous-integration/drone/push Build is passing

Not sending the right response codes for Turbo to handle.
This commit is contained in:
Râu Cao
2023-03-15 15:24:00 +07:00
parent 95fac38b53
commit f050d010fd
7 changed files with 23 additions and 20 deletions

View File

@@ -3,7 +3,9 @@ class Donation < ApplicationRecord
belongs_to :user
# Validations
validates_presence_of :user
validates_presence_of :amount_sats
validates_presence_of :paid_at
# Hooks
# TODO before_create :store_fiat_value