Honor CID and new format independently

This commit is contained in:
Priit Tark 2015-05-06 18:59:58 +03:00
parent 0a07004633
commit ba26ea4bac
5 changed files with 11 additions and 39 deletions

View file

@ -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