Renamed ident flag to type

This commit is contained in:
Andres Keskküla 2015-01-08 11:50:44 +02:00
parent 8c20f2697b
commit 3f5b37db5c
3 changed files with 3 additions and 3 deletions

View file

@ -168,7 +168,7 @@ module Epp::ContactsHelper
end
def ident_type
result = parsed_frame.css('ident').first.try(:attributes).try(:[], 'flag').try(:value)
result = parsed_frame.css('ident').first.try(:attributes).try(:[], 'type').try(:value)
return nil unless result
Contact::IDENT_TYPES.any? { |type| return type if result.include?(type) }