This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Fri Jul 25 16:22:49 -0700 2008 | |
| |
README | Fri Jul 25 15:40:56 -0700 2008 | |
| |
Rakefile | Fri Jul 25 16:22:49 -0700 2008 | |
| |
init.rb | Fri Jul 25 16:22:49 -0700 2008 | |
| |
install.rb | Fri Jul 25 16:22:49 -0700 2008 | |
| |
lib/ | Fri Jul 25 16:22:49 -0700 2008 | |
| |
tasks/ | Fri Jul 25 16:22:49 -0700 2008 | |
| |
test/ | Fri Jul 25 16:22:49 -0700 2008 | |
| |
uninstall.rb | Fri Jul 25 16:22:49 -0700 2008 |
README
Inaccessible Attributes ======================= This plugin disables mass assignment by default, and prevents the use of attr_protected. Attributes safe for mass assignment must be specified using attr_accessible. Logging is also improved to help prevent attr_accessible-related errors: * A message is displayed during migrations as a reminder to use attr_accessible for newly added attributes. * The 'removed from mass assignment' logger warning is more noticeable in development. Disabling Inaccessible Attributes ================================= Some third party/legacy code may not play nice with this plugin. The behavior can be disabled with the disable_mass_assignment method: => ThirdPartyModel.send(:disable_mass_assignment, false) In your own classes, the plugin must be disabled before the offending code is mixed in. class MyModel < ActiveRecord::Base disable_mass_assignment false include BehaviorWithAttrProtected ... end Keep a look out for potential mass assignment problems during testing: tail -f log/test.log | grep WARNING Copyright (c) 2008 Eric Chapweske, released under the MIT license







