@ -23,6 +23,6 @@
<% end %>
</div>
<% if !Rails.env.production? %>
<% if FeatureToggle.location_toggle_enabled? %>
<%= govuk_button_link_to "Deactivate this location", location_deactivate_path(location_id: @location.id, id: @scheme.id), warning: true %>
@ -14,4 +14,10 @@ class FeatureToggle
false
end
def self.location_toggle_enabled?
return true unless Rails.env.production?