mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Fix Rubocop warnings
This commit is contained in:
parent
02aad0d781
commit
a651ac8cab
13 changed files with 26 additions and 20 deletions
|
@ -19,7 +19,8 @@ class Registrant::DomainDeleteConfirmsController < RegistrantController
|
|||
domain_name: @domain.name,
|
||||
verification_token: params[:token])
|
||||
|
||||
initiator = current_registrant_user ? current_registrant_user.username : t(:user_not_authenticated)
|
||||
initiator = current_registrant_user ? current_registrant_user.username :
|
||||
t(:user_not_authenticated)
|
||||
|
||||
if params[:rejected]
|
||||
if @registrant_verification.domain_registrant_delete_reject!("email link #{initiator}")
|
||||
|
|
|
@ -19,7 +19,8 @@ class Registrant::DomainUpdateConfirmsController < RegistrantController
|
|||
domain_name: @domain.name,
|
||||
verification_token: params[:token])
|
||||
|
||||
initiator = current_registrant_user ? current_registrant_user.username : t(:user_not_authenticated)
|
||||
initiator = current_registrant_user ? current_registrant_user.username :
|
||||
t(:user_not_authenticated)
|
||||
|
||||
if params[:rejected]
|
||||
if @registrant_verification.domain_registrant_change_reject!("email link, #{initiator}")
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
class Registrant::SessionsController < Devise::SessionsController
|
||||
layout 'registrant/application'
|
||||
|
||||
def new
|
||||
end
|
||||
def new; end
|
||||
|
||||
def id
|
||||
id_code, id_issuer = request.env['SSL_CLIENT_S_DN'], request.env['SSL_CLIENT_I_DN_O']
|
||||
|
@ -99,11 +98,11 @@ class Registrant::SessionsController < Devise::SessionsController
|
|||
|
||||
private
|
||||
|
||||
def after_sign_in_path_for(resource_or_scope)
|
||||
def after_sign_in_path_for(_resource_or_scope)
|
||||
registrant_root_path
|
||||
end
|
||||
|
||||
def after_sign_out_path_for(resource_or_scope)
|
||||
def after_sign_out_path_for(_resource_or_scope)
|
||||
new_registrant_user_session_path
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue