mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 21:25:39 +02:00
fixed error
This commit is contained in:
parent
2ffa28692f
commit
b742bb7576
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ class Domain < ApplicationRecord
|
||||||
exists?(["name ILIKE ?", "%.#{zone.origin}"])
|
exists?(["name ILIKE ?", "%.#{zone.origin}"])
|
||||||
end
|
end
|
||||||
|
|
||||||
def swap_elements(array, indexes)
|
def self.swap_elements(array, indexes)
|
||||||
indexes.each do |index|
|
indexes.each do |index|
|
||||||
array[index[0]], array[index[1]] = array[index[1]], array[index[0]]
|
array[index[0]], array[index[1]] = array[index[1]], array[index[0]]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue