No commit activity in last 3 years
No release in over 3 years
Protects all ActiveRecord model attributes from mass assignment by default
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 3.0.0
 Project Readme

default_whitelist

Default whitelist changes the default strategy for mass-assignment protection in Ruby on Rails to whitelisting by default. Currently, one must explictly declare which attributes are mass-assignable, e.g. with ActiveRecord::Base#update_attributes or all attributes can be mass-assigned. This might not be sensible default as simple omission can leave applications with obvious security vulnerabilities, n.b. Github.

To install:

gem install default_whitelist

To use:

require default_whitelist