favors before_action vs before_filter
This commit is contained in:
@@ -2,11 +2,10 @@ class SpendingProposalsController < ApplicationController
|
||||
include FeatureFlags
|
||||
|
||||
before_action :authenticate_user!, except: [:index]
|
||||
before_action -> { flash.now[:notice] = flash[:notice].html_safe if flash[:html_safe] && flash[:notice] }
|
||||
|
||||
load_and_authorize_resource
|
||||
|
||||
before_filter -> { flash.now[:notice] = flash[:notice].html_safe if flash[:html_safe] && flash[:notice] }
|
||||
|
||||
feature_flag :spending_proposals
|
||||
|
||||
respond_to :html, :js
|
||||
@@ -48,7 +47,6 @@ class SpendingProposalsController < ApplicationController
|
||||
set_spending_proposal_votes(@spending_proposal)
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
def spending_proposal_params
|
||||
|
||||
Reference in New Issue
Block a user