X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/f0b2ed9bb6c1e153231b8088eabe6e3edcee9420..0888f43d7b5a5e23874ff1a291049b90481d1273:/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