Story#109070142 - EPP can save updated nameservers

This commit is contained in:
Vladimir Krylov 2015-11-30 22:43:49 +02:00
parent cdbcc5f9b5
commit d1dd65af3a
2 changed files with 13 additions and 4 deletions

View file

@ -89,5 +89,14 @@ class Nameserver < ActiveRecord::Base
return 'replaced_all' if prc == 1.0
'replaced_some'
end
def find_by_hash_params params
params = params.with_indifferent_access
rel = all
rel = rel.where(hostname: params[:hostname])
# rel = rel.where(hostname: params[:hostname]) if params[:ipv4]
# ignoring ips
rel
end
end
end