aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases/mass_assignment_security_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Revert "AM::MassAssingmentSecurity: improve performance"José Valim2012-03-151-1/+1
| | | | | | It introduces backwards incompatible changes in the API. This reverts commit 7d1379ffdbbaf01e99833dc06611b7e4f3799522.
* AM::MassAssingmentSecurity: improve performanceBogdan Gusiev2012-03-141-1/+1
|
* Fix sanitize_for_mass_assigment when role is nilFabio Yamate2012-02-151-0/+7
| | | | | | | There is an example in Rails documentation that suggests implementing assign_attributes method for ActiveModel interface, that by default sends option role with nil. Since mass_assignment_authorizer never is called without args, we can move the default value internally.
* Allow to specify mass-assignment roles as arrayAlexander Uvarov2011-06-231-0/+14
|
* MassAssignmentSecurity: add ability to specify your own sanitizerBogdan Gusiev2011-05-261-0/+20
| | | | | | Added an ability to specify your own behavior on mass assingment protection, controlled by option: ActiveModel::MassAssignmentSecurity.mass_assignment_sanitizer
* renamed mass-assignment scopes to roles, updated code, tests, docs and ↵Josh Kalderimis2011-05-081-2/+2
| | | | security guide
* AM mass assignment security attr_accessible and attr_protected now allow for ↵Josh Kalderimis2011-04-241-6/+33
| | | | | | | | scopes using :as => scope eg. attr_accessible :name attr_accessible :name, :admin, :as => :admin
* code gardening: we have assert_(nil|blank|present), more concise, with ↵Xavier Noria2010-08-171-3/+3
| | | | better default failure messages - let's use them
* Avoid interpreted as grouped expression warningsSantiago Pastorino2010-07-111-3/+3
|
* mass_assignment_security moved from AR to AMo, and minor test cleanupJosh Kalderimis2010-07-081-0/+52
Signed-off-by: José Valim <jose.valim@gmail.com>