Skip to content

Commit

Permalink
update action_rendering to permit params and then convert to_h (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuenmichelle1 authored Jul 1, 2024
1 parent f815fae commit 7a6384d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/concerns/action_rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def index

def show
authorize model_class.where(id: resource_ids)
render json: serializer_class.resource(params, nil, current_user: current_user)
params.permit!
render json: serializer_class.resource(params.to_h, nil, current_user: current_user)
end

def create
Expand Down

0 comments on commit 7a6384d

Please sign in to comment.