rubocop updates

This commit is contained in:
Priit Tark 2015-06-25 17:51:49 +03:00
parent e289366734
commit 168df25aeb
3 changed files with 5 additions and 3 deletions

View file

@ -8,8 +8,8 @@ class Registrant::DomainDeleteConfirmsController < RegistrantController
@domain = nil unless @domain.registrant_delete_confirmable?(params[:token]) @domain = nil unless @domain.registrant_delete_confirmable?(params[:token])
end end
# # rubocop: disable Metrics/PerceivedComplexity # rubocop: disable Metrics/PerceivedComplexity
# # rubocop: disable Metrics/CyclomaticComplexity # rubocop: disable Metrics/CyclomaticComplexity
def update def update
@domain = Domain.find(params[:id]) @domain = Domain.find(params[:id])
unless @domain.registrant_delete_confirmable?(params[:token]) unless @domain.registrant_delete_confirmable?(params[:token])

View file

@ -408,7 +408,7 @@ class Epp::Domain < Domain
) )
end end
def epp_destroy(frame, user_id, verify=true) def epp_destroy(frame, user_id, verify = true)
return false unless valid? return false unless valid?
if verify && frame.css('delete').attr('verified').to_s.downcase != 'yes' if verify && frame.css('delete').attr('verified').to_s.downcase != 'yes'

View file

@ -1,3 +1,4 @@
# rubocop: disable Style/SymbolProc
namespace :import do namespace :import do
# README # README
# #
@ -712,3 +713,4 @@ namespace :import do
puts "-----> Imported EIS domains in #{(Time.zone.now.to_f - start).round(2)} seconds" puts "-----> Imported EIS domains in #{(Time.zone.now.to_f - start).round(2)} seconds"
end end
end end
# rubocop: enable Style/SymbolProc