mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 08:22:05 +02:00
Honor CID and new format independently
This commit is contained in:
parent
0a07004633
commit
ba26ea4bac
5 changed files with 11 additions and 39 deletions
|
@ -8,7 +8,8 @@ class Epp::Contact < Contact
|
|||
class << self
|
||||
# support legacy search
|
||||
def find_by_epp_code(code)
|
||||
find_by(code: code.sub(/^CID:/, ''))
|
||||
# find_by(code: code.sub(/^CID:/, '')) # legacy support turned off
|
||||
find_by(code: code)
|
||||
end
|
||||
|
||||
# rubocop: disable Metrics/PerceivedComplexity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue