mirror of
https://github.com/internetee/registry.git
synced 2025-08-11 20:19:34 +02:00
Encapsulate methods
This commit is contained in:
parent
7fe3e2765a
commit
5533b4f891
1 changed files with 6 additions and 4 deletions
|
@ -14,10 +14,6 @@ class Registrant::DomainsController < RegistrantController
|
||||||
authorize! :read, @domain
|
authorize! :read, @domain
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_domain
|
|
||||||
@domain = domains.find(params[:id])
|
|
||||||
end
|
|
||||||
|
|
||||||
def domain_verification_url
|
def domain_verification_url
|
||||||
authorize! :view, :registrant_domains
|
authorize! :view, :registrant_domains
|
||||||
dom = domains.find(params[:id])
|
dom = domains.find(params[:id])
|
||||||
|
@ -51,6 +47,12 @@ class Registrant::DomainsController < RegistrantController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def set_domain
|
||||||
|
@domain = domains.find(params[:id])
|
||||||
|
end
|
||||||
|
|
||||||
def domains
|
def domains
|
||||||
ident_cc, ident = @current_user.registrant_ident.split '-'
|
ident_cc, ident = @current_user.registrant_ident.split '-'
|
||||||
begin
|
begin
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue