Bogdan Gusiev
24a6609ea3
Fix AM::MassAssignementSecurity doc
2011-12-22 10:24:20 +02:00
Alexander Uvarov
e945497955
Minor formating fix
2011-06-24 03:52:39 +06:00
Alexander Uvarov
ee044ea547
Follow rails convention by using Array.wrap
2011-06-23 23:06:52 +06:00
Alexander Uvarov
528f405cdc
Allow to specify mass-assignment roles as array
2011-06-23 12:56:39 +06:00
Damien Mathieu
70381cf507
no need for .rb
2011-05-31 23:38:51 +02:00
Damien Mathieu
bb828990bd
string inflections are needed for running tests in isolation
2011-05-31 23:38:39 +02:00
José Valim
139a9f7011
Transform the symbol into a constant lookup.
2011-05-31 12:24:30 +02:00
Bogdan Gusiev
aa2639e746
ActiveModel::MassAssignmentSecurity.mass_assignment_sanitizer method
...
In order to specify your own sanitize method
Implemented .mass_assignment_sanitizer configuration option
2011-05-30 11:34:00 +03:00
Bogdan Gusiev
c7567c9a6d
MassAssignmentSecurity: add ability to specify your own sanitizer
...
Added an ability to specify your own behavior on mass assingment
protection, controlled by option:
ActiveModel::MassAssignmentSecurity.mass_assignment_sanitizer
2011-05-26 15:58:43 +03:00
Josh Kalderimis
b2451f4a7f
renamed mass-assignment scopes to roles, updated code, tests, docs and security guide
2011-05-08 16:43:29 +02:00
Josh Kalderimis
bf40c729c6
minor correction to the AMo mass-assignment security docs
2011-04-24 09:58:12 +02:00
Josh Kalderimis
1054ebd613
AM mass assignment security attr_accessible and attr_protected now allow for scopes using :as => scope eg.
...
attr_accessible :name
attr_accessible :name, :admin, :as => :admin
2011-04-24 09:53:18 +02:00
Paco Guzman
14c254aba3
Remove Example headers. Code just flows with the text. 6ce844a3
2011-03-06 22:34:01 +01:00
Daniel Schierbeck
1a051259b4
Properly indent code example block
2011-01-15 17:54:02 +01:00
José Valim
c285f07a92
Change documentation for ActiveModel::MassAssignmentSecurity a bit and make debug always be called since some people may overwrite warn! to add extra behavior even if logger is not available.
2010-07-08 19:02:34 +02:00
Josh Kalderimis
4b66aab00f
mass_assignment_security moved from AR to AMo, and minor test cleanup
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-07-08 18:28:45 +02:00