Merge pull request #1903 from wairbut-m2c/aperez-enable-disable-proposals

Add enable/disable option for 'Proposals' feature
This commit is contained in:
Raimond Garcia
2017-12-08 11:41:13 +01:00
committed by GitHub
18 changed files with 70 additions and 18 deletions

View File

@@ -1,6 +1,10 @@
class Admin::ProposalsController < Admin::BaseController
include FeatureFlags
has_filters %w{without_confirmed_hide all with_confirmed_hide}, only: :index
feature_flag :proposals
before_action :load_proposal, only: [:confirm_hide, :restore]
def index
@@ -25,4 +29,4 @@ class Admin::ProposalsController < Admin::BaseController
@proposal = Proposal.with_hidden.find(params[:id])
end
end
end