Skip to content

Commit

Permalink
FFS-1740: Fix unpermitted parameter developer warnings (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdooner authored Jan 7, 2025
1 parent 970a639 commit 57b5e24
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app/app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,11 @@ def pinwheel_for(cbv_flow)
end

def add_newrelic_metadata
newrelic_params = params.slice(:site_id, :locale).permit

attributes = {
cbv_flow_id: session[:cbv_flow_id],
session_id: session.id.to_s,
site_id: newrelic_params[:site_id],
locale: newrelic_params[:locale],
site_id: params[:site_id],
locale: params[:locale],
user_id: current_user.try(:id)
}

Expand Down
2 changes: 1 addition & 1 deletion app/app/controllers/cbv/employer_searches_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def show
private

def search_params
params.permit(:query, :type)
params.slice(:query, :type)
end

def fetch_employers(query = "")
Expand Down

0 comments on commit 57b5e24

Please sign in to comment.