Skip to content

Commit

Permalink
Update validation
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhbhatia committed Sep 24, 2024
1 parent 664f78b commit 8cfc87e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class User < ApplicationRecord
has_many :purchases, dependent: :destroy
has_many :products, through: :purchases
has_many :orders, dependent: :destroy
# validates :first_name, :last_name, :email, :password, presence: true
# validates_confirmation_of :password
validates :first_name, :last_name, :email, :password, presence: true
validates_confirmation_of :password
before_validation :set_uid_provider

def can_receive_payments?
Expand Down

0 comments on commit 8cfc87e

Please sign in to comment.