REPP: Domain tech contact replace test

This commit is contained in:
Karl Erik Õunapuu 2020-10-21 15:14:33 +03:00
parent 774ada6ebb
commit 06ad8c8c77
No known key found for this signature in database
GPG key ID: C9DD647298A34764
3 changed files with 69 additions and 4 deletions

View file

@ -6,7 +6,7 @@ module Repp
def index
records = current_user.registrar.domains
domains = records.limit(limit).offset(offset)
domains = domains.pluck(:name) unless params[:details] == 'true'
domains = domains.pluck(:name) unless index_params[:details] == 'true'
render_success(data: { domains: domains, total_number_of_records: records.count })
end
@ -96,11 +96,11 @@ module Repp
end
def limit
params[:limit] || 200
index_params[:limit] || 200
end
def offset
params[:offset] || 0
index_params[:offset] || 0
end
def index_params