Registry / other / protected-attributes

protected-attributes

JSON →
library1.1.4rbrubygemsunverified

Protect attributes from mass assignment in Active Record models.

gem install protected_attributes
INSTALL
IMPORT
SIG · PROTECTED-ATTRIBUT
P
protected-attributes
otherrubyv1.1.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ProtectedAttributes
require 'protected_attributes'

Define accessible attributes to protect against mass assignment.

require 'protected_attributes' class User < ActiveRecord::Base attr_accessible :name, :email end
Debug
Known issues
breakingThis gem is extracted from Rails 3.2 and may conflict with Rails 4+ strong parameters.
fix
Use strong parameters instead of protected_attributes for new Rails applications.
affects: >= 4.0
Upgrade
Version history
1.1.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
protected-attributes — gem install protected-attributes · libregistry