fixed error

This commit is contained in:
dinsmol 2021-08-18 16:22:52 +03:00
parent 2ffa28692f
commit b742bb7576

View file

@ -756,7 +756,7 @@ class Domain < ApplicationRecord
exists?(["name ILIKE ?", "%.#{zone.origin}"])
end
def swap_elements(array, indexes)
def self.swap_elements(array, indexes)
indexes.each do |index|
array[index[0]], array[index[1]] = array[index[1]], array[index[0]]
end