Chris Oliver 6 rokov pred
rodič
commit
3b3ba820d4
1 zmenil súbory, kde vykonal 0 pridanie a 6 odobranie
  1. 0 6
      app/models/user.rb

+ 0 - 6
app/models/user.rb

@@ -5,10 +5,4 @@ class User < ApplicationRecord
 
   has_many :notifications, foreign_key: :recipient_id
   has_many :services
-
-  validates :first_name, :last_name, presence: true
-
-  def name
-    "#{first_name} #{last_name}"
-  end
 end