X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/34e3e51456774127d43408b7ab65c24f41373f62..ef7f3d800cbdd49b692df10d312e5fd880e2e938:/app/controllers/redactions_controller.rb?ds=sidebyside diff --git a/app/controllers/redactions_controller.rb b/app/controllers/redactions_controller.rb index 6dbe53937..b40c83e0d 100644 --- a/app/controllers/redactions_controller.rb +++ b/app/controllers/redactions_controller.rb @@ -52,9 +52,9 @@ class RedactionsController < ApplicationController end def destroy - unless @redaction.old_nodes.empty? and - @redaction.old_ways.empty? and - @redaction.old_relations.empty? + unless @redaction.old_nodes.empty? && + @redaction.old_ways.empty? && + @redaction.old_relations.empty? flash[:error] = t('redaction.destroy.not_empty') redirect_to @redaction else