mirror of
https://github.com/internetee/registry.git
synced 2025-05-18 18:29:40 +02:00
Add IP protection for REPP
This commit is contained in:
parent
8321f894d5
commit
abf47b1e08
6 changed files with 39 additions and 6 deletions
|
@ -13,9 +13,15 @@ class WhiteIp < ActiveRecord::Base
|
|||
errors.add(:base, I18n.t(:ipv4_or_ipv6_must_be_present))
|
||||
end
|
||||
|
||||
INTERFACE_EPP = 'epp'
|
||||
INTERFACE_REPP = 'repp'
|
||||
INTERFACE_REGISTRAR = 'registrar'
|
||||
EPP = 'epp'
|
||||
REPP = 'repp'
|
||||
REGISTRAR = 'registrar'
|
||||
GLOBAL = 'global'
|
||||
|
||||
INTERFACES = [INTERFACE_EPP, INTERFACE_REPP, INTERFACE_REGISTRAR]
|
||||
INTERFACES = [GLOBAL, EPP, REPP, REGISTRAR]
|
||||
|
||||
scope :epp, -> { where(interface: EPP) }
|
||||
scope :repp, -> { where(interface: REPP) }
|
||||
scope :registrar, -> { where(interface: REGISTRAR) }
|
||||
scope :global, -> { where(interface: GLOBAL) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue