mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 08:52:04 +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
|
||||
end
|
||||
|
||||
def set_domain
|
||||
@domain = domains.find(params[:id])
|
||||
end
|
||||
|
||||
def domain_verification_url
|
||||
authorize! :view, :registrant_domains
|
||||
dom = domains.find(params[:id])
|
||||
|
@ -51,6 +47,12 @@ class Registrant::DomainsController < RegistrantController
|
|||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_domain
|
||||
@domain = domains.find(params[:id])
|
||||
end
|
||||
|
||||
def domains
|
||||
ident_cc, ident = @current_user.registrant_ident.split '-'
|
||||
begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue