Use constants instead of strings

This commit is contained in:
Maciej Szlosarczyk 2020-05-15 14:52:11 +03:00
parent 6e5a97ad4d
commit 56e3784aa4
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765

View file

@ -24,8 +24,8 @@ class RetainedDomains
type = params[:type]
case type
when 'reserved' then :reserved
when 'blocked' then :blocked
when RESERVED then :reserved
when BLOCKED then :blocked
else :all
end
end