mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
12 lines
411 B
Ruby
12 lines
411 B
Ruby
class Registrant::DomainsController < RegistrantController
|
|
def index
|
|
authorize! :view, :registrant_domains
|
|
ident_cc, ident = @current_user.registrant_ident.split '-'
|
|
begin
|
|
@domains = BusinessRegistryCache.fetch_associated_domains ident, ident_cc
|
|
rescue Soap::Arireg::NotAvailableError => error
|
|
flash[:notice] = I18n.t(error.message[:message])
|
|
@domains = []
|
|
end
|
|
end
|
|
end
|