We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8cbc28 commit c333202Copy full SHA for c333202
app/contexts/base_context.rb
@@ -8,6 +8,7 @@ class BaseContext
8
private
9
10
def permit_params(params, *cols)
11
+ params = params.permit! if params.respond_to?(:permit!)
12
ActionController::Parameters.new(params.to_h.with_indifferent_access).permit(cols)
13
end
14
0 commit comments