Notes posted by elfo
RSS feed
elfo -
September 5, 2012 - (>= v3.0.0)
0 thanks
Don't allow mass assignments on model
To block all mass assignments on a model, it’s as simple as having an empty list of accessible attributes.
example
class Users < ActiveRecord::Base attr_accessible #none end