mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Rubocop syntax updates #2711
This commit is contained in:
parent
e46c1130db
commit
59c73fca9e
9 changed files with 33 additions and 11 deletions
|
@ -1,9 +1,9 @@
|
|||
class DeviseCustomFailure < Devise::FailureApp
|
||||
def redirect_url
|
||||
return registrant_login_url if request.original_fullpath.to_s.match(/^\/registrant/)
|
||||
return registrar_login_url if request.original_fullpath.to_s.match(/^\/registrar/)
|
||||
return registrant_login_url if request.original_fullpath.to_s.match(%r{^\/registrant})
|
||||
return registrar_login_url if request.original_fullpath.to_s.match(%r{^\/registrar})
|
||||
return '/admin' if request.original_fullpath.to_s.match(%r{^\/admin\/que})
|
||||
return admin_login_url if request.original_fullpath.to_s.match(/^\/admin/)
|
||||
return admin_login_url if request.original_fullpath.to_s.match(%r{^\/admin})
|
||||
root_url
|
||||
end
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# rubocop: disable Style/SymbolProc
|
||||
# rubocop: disable Performance/Detect
|
||||
namespace :import do
|
||||
# README
|
||||
#
|
||||
|
@ -713,4 +714,5 @@ namespace :import do
|
|||
puts "-----> Imported EIS domains in #{(Time.zone.now.to_f - start).round(2)} seconds"
|
||||
end
|
||||
end
|
||||
# rubocop: enable Performance/Detect
|
||||
# rubocop: enable Style/SymbolProc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue