Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Rails plugin to disable mass assignment by default on ActiveRecord objects
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
MIT-LICENSE
README
Rakefile
init.rb

README

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
Something went wrong with that request. Please try again.