mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
Reformat
This commit is contained in:
parent
0b6e89dbca
commit
67ec7b1256
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
||||||
class Registrant::ContactsController < RegistrantController
|
class Registrant::ContactsController < RegistrantController
|
||||||
helper_method :domain_ids
|
helper_method :domain_ids
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@contact = Contact.where(id: contacts).find_by(id: params[:id])
|
@contact = Contact.where(id: contacts).find_by(id: params[:id])
|
||||||
@current_user = current_user
|
@current_user = current_user
|
||||||
|
|
||||||
authorize! :read, @contact
|
authorize! :read, @contact
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
class Registrant::RegistrarsController < RegistrantController
|
class Registrant::RegistrarsController < RegistrantController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@registrar = Registrar.find(params[:id])
|
@registrar = Registrar.find(params[:id])
|
||||||
authorize! :read, @registrar
|
authorize! :read, @registrar
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Add table
Add a link
Reference in a new issue