mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 12:47:29 +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}"])
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue