Skip to content

Commit c333202

Browse files
committed
fix(params): permit!
1 parent c8cbc28 commit c333202

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/contexts/base_context.rb

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class BaseContext
88
private
99

1010
def permit_params(params, *cols)
11+
params = params.permit! if params.respond_to?(:permit!)
1112
ActionController::Parameters.new(params.to_h.with_indifferent_access).permit(cols)
1213
end
1314
end

0 commit comments

Comments
 (0)