Skip to content

Rails plugin to disable mass assignment by default on ActiveRecord objects

License

Notifications You must be signed in to change notification settings

quamen/disable-mass-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DisableMassAssignment
=====================

This plugin sets attr_accessible to nil on the ActiveRecord::Base object, thus disabling mass assignment by default.

In each of your ActiveRecord models you will need to declare which attributes can be mass assigned by using attr_accessible.

Example
=======

attr_accessible :email, :first_name, :last_name


Copyright (c) 2009 Gareth Townsend, released under the MIT license

About

Rails plugin to disable mass assignment by default on ActiveRecord objects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages