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 3cb9dce..c21b17c 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