Fix bug where checking payment providers were validated improperly in rails 4.1
This commit is contained in:
parent
30accb5e79
commit
3d27e97fee
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class Donation < ActiveRecord::Base
|
|||
validates :supporter, presence: true
|
||||
validates :nonprofit, presence: true
|
||||
validates_associated :charges
|
||||
validates :payment_provider, inclusion: { in: %(credit_card sepa) }, allow_blank: true
|
||||
validates :payment_provider, inclusion: { in: ["credit_card", "sepa"]}, allow_blank: true
|
||||
|
||||
has_many :charges
|
||||
has_many :campaign_gifts, dependent: :destroy
|
||||
|
|
Loading…
Reference in a new issue