mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Remove occurrencies of Setting.x
This commit is contained in:
parent
4c9fc76283
commit
49f11cce0b
4 changed files with 5 additions and 11 deletions
|
@ -8,7 +8,7 @@ module Concerns
|
|||
end
|
||||
|
||||
def legaldoc_not_mandatory?
|
||||
setting = Setting.find_by(var: 'legal_document_is_mandatory')&.value
|
||||
setting = Setting.legal_document_is_mandatory
|
||||
legaldoc_optout || !setting
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue