Show ident info as text #2776

This commit is contained in:
Priit Tark 2015-07-21 18:26:24 +03:00
parent 4ade318870
commit 0e4f333c47
2 changed files with 25 additions and 10 deletions

View file

@ -136,6 +136,12 @@ module Depp
end
hash
end
def type_string(type_code)
return '' if type_code.blank?
t = SELECTION_TYPES.select { |tp| tp.second == type_code }
t.try(:first)
end
end
def initialize(attributes = {})