[Feature Request] Configuration to automatically include camelized versions of filter parameters

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Feature Request] Configuration to automatically include camelized versions of filter parameters

Glenn Espinosa
For example, when specifying Rails.application.config.filter_parameters += [:social_security_number]

It would be nice if Rails had a boolean configuration option to also include parameter variations such as :socialSecurityNumber.

Something like Rails.application.config.include_camelized_filter_parameters = true

Would be more than happy to work on this if it seems reasonable. 

Best,
Glenn Espinosa

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: [Feature Request] Configuration to automatically include camelized versions of filter parameters

Andrew Kaspick
Just add both variations or automate with some additional code that adds both variations to the list for you automatically. 


On Sat, Mar 17, 2018 at 2:08 AM Glenn Espinosa <[hidden email]> wrote:
For example, when specifying Rails.application.config.filter_parameters += [:social_security_number]

It would be nice if Rails had a boolean configuration option to also include parameter variations such as :socialSecurityNumber.

Something like Rails.application.config.include_camelized_filter_parameters = true

Would be more than happy to work on this if it seems reasonable. 

Best,
Glenn Espinosa

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.