mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Rubocop fixes #2620
This commit is contained in:
parent
b7f475b1c9
commit
4b506d37e5
3 changed files with 6 additions and 6 deletions
|
@ -56,7 +56,7 @@ class Admin::DomainsController < AdminController
|
|||
if params[:domain]
|
||||
params.require(:domain).permit({ statuses: [] })
|
||||
else
|
||||
{statuses: []}
|
||||
{ statuses: [] }
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -68,7 +68,7 @@ class Admin::DomainsController < AdminController
|
|||
|
||||
def ignore_empty_statuses
|
||||
dp = domain_params
|
||||
dp[:statuses].reject! { |x| x.blank? }
|
||||
dp[:statuses].reject!(&:blank?)
|
||||
dp
|
||||
end
|
||||
end
|
||||
|
|
|
@ -27,7 +27,7 @@ class Registrant::SessionsController < Devise::SessionsController
|
|||
@user = User.new
|
||||
end
|
||||
|
||||
def mid
|
||||
def mid # rubocop: disable Metrics/MethodLength
|
||||
phone = params[:user][:phone]
|
||||
endpoint = "#{ENV['sk_digi_doc_service_endpoint']}"
|
||||
client = Digidoc::Client.new(endpoint)
|
||||
|
|
|
@ -315,7 +315,7 @@ class Domain < ActiveRecord::Base
|
|||
self.registrant_verification_token = token
|
||||
self.registrant_verification_asked_at = asked_at
|
||||
self.statuses = [DomainStatus::PENDING_UPDATE]
|
||||
self.pending_json[:domain] = changes_cache
|
||||
pending_json[:domain] = changes_cache
|
||||
end
|
||||
|
||||
def registrant_update_confirmable?(token)
|
||||
|
@ -347,8 +347,8 @@ class Domain < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def registrant_verification_asked!(frame_str, current_user_id)
|
||||
self.pending_json['frame'] = frame_str
|
||||
self.pending_json['current_user_id'] = current_user_id
|
||||
pending_json['frame'] = frame_str
|
||||
pending_json['current_user_id'] = current_user_id
|
||||
self.registrant_verification_asked_at = Time.zone.now
|
||||
self.registrant_verification_token = SecureRandom.hex(42)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue