class RemoteStorageExpireAuthorizationJob < ApplicationJob queue_as :remotestorage def perform(rs_auth_id) rs_auth = RemoteStorageAuthorization.find rs_auth_id rs_auth.destroy! end end