Rubocop fixes #2620

This commit is contained in:
Martin Lensment 2015-06-16 17:00:19 +03:00
parent b7f475b1c9
commit 4b506d37e5
3 changed files with 6 additions and 6 deletions

View file

@ -68,7 +68,7 @@ class Admin::DomainsController < AdminController
def ignore_empty_statuses def ignore_empty_statuses
dp = domain_params dp = domain_params
dp[:statuses].reject! { |x| x.blank? } dp[:statuses].reject!(&:blank?)
dp dp
end end
end end

View file

@ -27,7 +27,7 @@ class Registrant::SessionsController < Devise::SessionsController
@user = User.new @user = User.new
end end
def mid def mid # rubocop: disable Metrics/MethodLength
phone = params[:user][:phone] phone = params[:user][:phone]
endpoint = "#{ENV['sk_digi_doc_service_endpoint']}" endpoint = "#{ENV['sk_digi_doc_service_endpoint']}"
client = Digidoc::Client.new(endpoint) client = Digidoc::Client.new(endpoint)

View file

@ -315,7 +315,7 @@ class Domain < ActiveRecord::Base
self.registrant_verification_token = token self.registrant_verification_token = token
self.registrant_verification_asked_at = asked_at self.registrant_verification_asked_at = asked_at
self.statuses = [DomainStatus::PENDING_UPDATE] self.statuses = [DomainStatus::PENDING_UPDATE]
self.pending_json[:domain] = changes_cache pending_json[:domain] = changes_cache
end end
def registrant_update_confirmable?(token) def registrant_update_confirmable?(token)
@ -347,8 +347,8 @@ class Domain < ActiveRecord::Base
end end
def registrant_verification_asked!(frame_str, current_user_id) def registrant_verification_asked!(frame_str, current_user_id)
self.pending_json['frame'] = frame_str pending_json['frame'] = frame_str
self.pending_json['current_user_id'] = current_user_id pending_json['current_user_id'] = current_user_id
self.registrant_verification_asked_at = Time.zone.now self.registrant_verification_asked_at = Time.zone.now
self.registrant_verification_token = SecureRandom.hex(42) self.registrant_verification_token = SecureRandom.hex(42)
end end