mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 09:27:19 +02:00
rubocop updates
This commit is contained in:
parent
e289366734
commit
168df25aeb
3 changed files with 5 additions and 3 deletions
|
@ -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])
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue