Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Rails 4 disable Strong Parameters by default

Is there anyway to disable using strong params?

And I know it's a security vulnerability but I really don't need it / want it.

like image 533
Mike Silvis Avatar asked Aug 06 '13 23:08

Mike Silvis


1 Answers

Turning off attribute protection is almost always a bad idea.

With that obligatory note out of the way, here's how to turn it off:

config.action_controller.permit_all_parameters = true

Place this in config/application.rb

like image 159
iain Avatar answered Sep 22 '22 21:09

iain