public
Description: Disables mass assignment by default, requiring attr_accessible to specify safe attributes. Also improves mass-assignment related logging.
Homepage: http://www.railspikes.com
Clone URL: git://github.com/eac/inaccessible_attributes.git
100644 4 lines (3 sloc) 0.215 kb
1
2
3
4
ActiveRecord::Base.send(:extend, EricChapweske::InaccessibleAttributes)
ActiveRecord::Base.send(:include, EricChapweske::MassAssignmentLogging)
ActiveRecord::Migration.send(:extend, EricChapweske::MigrationWarning)