mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 07:04:47 +02:00
Use constants instead of strings
This commit is contained in:
parent
6e5a97ad4d
commit
56e3784aa4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue