Explorar o código

Update user.rb

Chris Oliver %!s(int64=7) %!d(string=hai) anos
pai
achega
3b3ba820d4
Modificáronse 1 ficheiros con 0 adicións e 6 borrados
  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