X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/aa1fb6dbb8c2e71b8ce8c231ae1272a2dfebd75a..942e62117ff7f12d40618a94ea3f4e86f8cb25af:/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