days
-4
-5
hours
-2
0
minutes
0
-9
seconds
-1
-4
search
WhiteListeModel

New Gem for Sanitising Selected Fields

Jessica Thornsby

WhiteListModel is a new ruby gem that sanitises selected fields before the model gets saved into the database.

It is based on WhiteListHelper but, instead of using white_list_helper in every view, WhiteListModel allows the developer to use it as model before_filter. This eliminates the need to whitelist user-input data in every place they appear.

The gem can be downloaded from github now.

Author

Leave a Reply

Be the First to Comment!

avatar
400
  Subscribe  
Notify of