X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b2a8df0bd73f1031dcf4684e084897a28b117345..64816e50b57ced52f5fb0082f97b2844e002cf11:/app/models/user_block.rb diff --git a/app/models/user_block.rb b/app/models/user_block.rb index 4f9cf1128..9f32862af 100644 --- a/app/models/user_block.rb +++ b/app/models/user_block.rb @@ -63,7 +63,7 @@ class UserBlock < ActiveRecord::Base # revokes the block, allowing the user to use the API again. the argument # is the user object who is revoking the ban. def revoke!(revoker) - update_attributes( + update( :ends_at => Time.now.getutc, :revoker_id => revoker.id, :needs_view => false