We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2404a44 commit e6c1995Copy full SHA for e6c1995
1 file changed
app/controllers/names_controller.rb
@@ -70,17 +70,17 @@ def index(opts = {})
70
opts[:rank] = params[:rank] if params[:rank].present?
71
72
opts[:status] ||=
73
- case @status
+ case @status.to_s.downcase
74
when 'public'; Name.public_status
75
when 'automated'; 0
76
- when 'SeqCode'; 15
77
- when 'ICNP'; 20
78
- when 'ICNafp'; 25
+ when 'seqcode'; 15
+ when 'icnp'; 20
+ when 'icnafp'; 25
79
when 'valid'; Name.valid_status
80
end
81
82
@names ||=
83
- case @sort
+ case @sort.to_s.downcase
84
when 'date'
85
if opts[:status] == 15
86
Name.order(validated_at: :desc)
0 commit comments