diff --git a/app/models/location.rb b/app/models/location.rb index 7c012e442..87f34cb98 100644 --- a/app/models/location.rb +++ b/app/models/location.rb @@ -6,8 +6,8 @@ class Location < ApplicationRecord attr_accessor :add_another_location WHEELCHAIR_ADAPTATIONS = { - No: 0, Yes: 1, + No: 0 }.freeze enum wheelchair_adaptation: WHEELCHAIR_ADAPTATIONS diff --git a/app/views/locations/details.html.erb b/app/views/locations/details.html.erb index 10f72e4f2..b59655088 100644 --- a/app/views/locations/details.html.erb +++ b/app/views/locations/details.html.erb @@ -37,7 +37,7 @@ :name, legend: { text: "What is this type of scheme?", size: "m" } %> - <% wheelchair_user_selection = Location.wheelchair_adaptations.keys.reverse.map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } %> + <% wheelchair_user_selection = Location.wheelchair_adaptations.keys.map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } %> <%= f.govuk_collection_radio_buttons :wheelchair_adaptation, wheelchair_user_selection, diff --git a/app/views/locations/new.html.erb b/app/views/locations/new.html.erb index 782ceb0d3..48839d8d4 100644 --- a/app/views/locations/new.html.erb +++ b/app/views/locations/new.html.erb @@ -37,7 +37,7 @@ :name, legend: { text: "What is this type of scheme?", size: "m" } %> - <% wheelchair_user_selection = Location.wheelchair_adaptations.keys.reverse.map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } %> + <% wheelchair_user_selection = Location.wheelchair_adaptations.keys.map { |key, _| OpenStruct.new(id: key, name: key.to_s.humanize) } %> <%= f.govuk_collection_radio_buttons :wheelchair_adaptation, wheelchair_user_selection,