westonganger / protected_attributes_continued

The community continued version of protected_attributes for Rails 5+
MIT License
45 stars 33 forks source link

Controller scope #5

Closed TheRusskiy closed 6 years ago

TheRusskiy commented 7 years ago

This is not an issue, but more of a question / suggestion.

Is it possible to enable strong_parameters for some controllers? And this for others? Would be very helpful to migrate to new gem one controller at a time

westonganger commented 7 years ago

Either the attributes must be attr_accessible in the model (protected_attributes) OR you can use params.require().permit() in the controller (strong_params). There is nothing to enable/or disable.

TheRusskiy commented 7 years ago

@westonganger I guess what I am asking would be too complex. I meant allowing to use parameters via attr_accessible from some controllers but not others.