mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 10:49:39 +02:00
Typo fix
This commit is contained in:
parent
42b1890bf5
commit
0504ca7ca4
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ class User < ActiveRecord::Base
|
|||
validates :username, :password, presence: true
|
||||
validates :identity_code, uniqueness: true, allow_blank: true
|
||||
validates :identity_code, presence: true, if: -> { country.iso == 'EE' }
|
||||
validates :email, presence: true, if: -> { country.iso == 'LV' }
|
||||
validates :email, presence: true, if: -> { country.iso != 'EE' }
|
||||
validates :registrar, presence: true, if: -> { !admin }
|
||||
|
||||
before_save -> { self.registrar = nil if admin? }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue