Skip to content

Commit

Permalink
There is no need to include the url_helpers on a controller
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Aug 31, 2016
1 parent 6a9fd94 commit 51b95fa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/controllers/flipflop/strategies_controller.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
module Flipflop
class StrategiesController < ApplicationController
include Engine.routes.url_helpers

def update
strategy.switch!(feature_key, enable?)
redirect_to(flipflop.features_url)
redirect_to(features_url)
end

def destroy
strategy.clear!(feature_key)
redirect_to(flipflop.features_url)
redirect_to(features_url)
end

private
Expand Down

0 comments on commit 51b95fa

Please sign in to comment.