mirror of
https://github.com/internetee/registry.git
synced 2025-07-22 18:56:05 +02:00
Add check if legal doc mandatory & tests
This commit is contained in:
parent
3f9727dc55
commit
206704fee7
6 changed files with 83 additions and 2 deletions
|
@ -26,6 +26,7 @@ class ApiUser < User
|
|||
validates :username, uniqueness: true
|
||||
|
||||
delegate :code, :name, to: :registrar, prefix: true
|
||||
delegate :legaldoc_mandatory?, to: :registrar
|
||||
|
||||
alias_attribute :login, :username
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue