add unmanaged champ value type
This commit is contained in:
parent
144b522773
commit
6e8206b8b4
1 changed files with 3 additions and 2 deletions
|
@ -13,7 +13,8 @@ class Logic::ChampValue < Logic::Term
|
||||||
number: :number,
|
number: :number,
|
||||||
string: :string,
|
string: :string,
|
||||||
enum: :enum,
|
enum: :enum,
|
||||||
empty: :empty
|
empty: :empty,
|
||||||
|
unmanaged: :unmanaged
|
||||||
}
|
}
|
||||||
|
|
||||||
attr_reader :stable_id
|
attr_reader :stable_id
|
||||||
|
@ -48,7 +49,7 @@ class Logic::ChampValue < Logic::Term
|
||||||
when MANAGED_TYPE_DE_CHAMP.fetch(:drop_down_list)
|
when MANAGED_TYPE_DE_CHAMP.fetch(:drop_down_list)
|
||||||
CHAMP_VALUE_TYPE.fetch(:enum)
|
CHAMP_VALUE_TYPE.fetch(:enum)
|
||||||
else
|
else
|
||||||
raise "unmanaged type: #{type_de_champ.type_champ}"
|
CHAMP_VALUE_TYPE.fetch(:unmanaged)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue