]> git.openstreetmap.org Git - rails.git/commit
Turn on mass assignment protection
authorTom Hughes <tom@compton.nu>
Mon, 5 Mar 2012 16:31:11 +0000 (16:31 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 6 Mar 2012 08:54:45 +0000 (08:54 +0000)
commit1340fca8f17e4e3cce211e6eafed18cde7f57386
tree41596db6d1befedb763c4b13f97c947269f98f7a
parent7d8cf94680a369b694a27a2657ffb097bc772511
Turn on mass assignment protection

Require any attribute that is going to be mass assigned to be
whitelisted, and whitelist those attributes which need it
19 files changed:
app/controllers/trace_controller.rb
app/controllers/user_roles_controller.rb
app/models/client_application.rb
app/models/diary_comment.rb
app/models/diary_entry.rb
app/models/message.rb
app/models/oauth_nonce.rb
app/models/request_token.rb
app/models/tracetag.rb
app/models/user.rb
app/models/user_block.rb
app/models/user_token.rb
config/application.rb
script/deliver-message
test/integration/user_blocks_test.rb
test/unit/diary_entry_test.rb
test/unit/node_test.rb
test/unit/oauth_token_test.rb
test/unit/user_test.rb