Permalink
Browse files

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

Remove Feedex feature flag
  • Loading branch information...
2 parents c4883c3 + 1033456 commit 9e21ad462668934588fd829c67cf8e99fe4c5555 @alext alext committed Feb 6, 2014
@@ -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 %>
@@ -1 +0,0 @@
-FEEDEX_ENABLED = Rails.env.development? || Rails.env.test?
View
@@ -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

0 comments on commit 9e21ad4

Please sign in to comment.