Skip to content

Commit

Permalink
Merge pull request #80 from yorch/unpermitted-param-format
Browse files Browse the repository at this point in the history
Avoid Unpermitted parameter: format error
  • Loading branch information
lbeder committed Mar 12, 2022
2 parents c96a18e + 919993f commit c1be4a1
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/controllers/health_monitor/health_controller.rb
Expand Up @@ -15,12 +15,8 @@ def check

respond_to do |format|
format.html
format.json do
render json: statuses.to_json, status: statuses[:status]
end
format.xml do
render xml: statuses.to_xml, status: statuses[:status]
end
format.json { render json: statuses.to_json, status: statuses[:status] }
format.xml { render xml: statuses.to_xml, status: statuses[:status] }
end
end

Expand All @@ -46,7 +42,7 @@ def authenticate_with_basic_auth
end

def providers_params
params.permit(providers: [])
params.except(:format).permit(providers: [])
end
end
end

0 comments on commit c1be4a1

Please sign in to comment.