Divya
Joined: 14 Sep 2009 Posts: 57
|
Posted: Mon Dec 07, 2009 4:29 am Post subject: audit_mass_assignment plugin usage. |
|
|
------- audit_mass_assignment plugin usage-------------------
The audit_mass_assignment Ruby on Rails plugin contains a rake task that checks the models in your project for the attr_accessible whitelist approach for protecting against "mass assignment" exploits. It does not check for use of attr_protected.
== Installation
gem install ryanlowe-audit_mass_assignment --source http://gems.github.com/
== Usage
$ rake audit:mass_assignment
If you want to protect ALL attributes in your model use:
attr_accessible nil
This is used to protect the model from hacking ,
"Mass assignment" exploits a danger to Rails applications, So to avoid those we use this "audit_mass_assignment plugin " to protect our application.
Thank You,
Divya. |
|