Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #133 from alphagov/remove-feedex-feature-flag

Remove Feedex feature flag
  • Loading branch information...
commit 9e21ad462668934588fd829c67cf8e99fe4c5555 2 parents c4883c3 + 1033456
@alext alext authored
View
2  app/views/support/_new_request_links.html.erb
@@ -7,7 +7,7 @@
<% end %>
</ul>
<% end %>
- <% if FEEDEX_ENABLED and current_user.can? :read, Support::Requests::Anonymous::ProblemReport %>
+ <% if current_user.can? :read, Support::Requests::Anonymous::ProblemReport %>
<ul class="nav nav-list">
<li class="nav-header">Anonymous feedback</li>
<%= feedex_nav_link %>
View
1  config/initializers/feedex_feature_flag.rb
@@ -1 +0,0 @@
-FEEDEX_ENABLED = Rails.env.development? || Rails.env.test?
View
10 config/routes.rb
@@ -9,15 +9,13 @@
resources :named_contacts, only: :create
namespace :anonymous_feedback do
- resources :problem_reports, only: FEEDEX_ENABLED ? [ :create, :index ] : [ :create ], format: false
+ resources :problem_reports, only: [ :create, :index ], format: false
resources :long_form_contacts, only: :create
resources :service_feedback, only: :create
- if FEEDEX_ENABLED
- namespace :problem_reports do
- get :explore, to: "explore#new", format: false
- post :explore, to: "explore#create", format: false
- end
+ namespace :problem_reports do
+ get :explore, to: "explore#new", format: false
+ post :explore, to: "explore#create", format: false
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.