]> git.openstreetmap.org Git - rails.git/commitdiff
Update spam block script for mass assignment protection changes
authorTom Hughes <tom@compton.nu>
Mon, 16 Apr 2012 07:44:38 +0000 (08:44 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 16 Apr 2012 07:44:38 +0000 (08:44 +0100)
script/update-spam-blocks

index 3cb9dcedd696deedec465ef82ffbbe975380c21f..c21b17cff0ca0293bd3962fabc1f78a2714f6919 100755 (executable)
@@ -18,11 +18,11 @@ addresses.each do |address,count|
     })
 
     unless acl
-      Acl.create(
+      Acl.create({
         :address => address,
         :k => "no_account_creation",
         :v => "auto_spam_block"
-      )
+      }, :without_protection => true)
 
       puts "Blocked #{address}"
     end