lib/ecoportal/api/v2/page/component/selection_field.rb in ecoportal-api-v2-0.9.3 vs lib/ecoportal/api/v2/page/component/selection_field.rb in ecoportal-api-v2-0.9.4

- old
+ new

@@ -7,9 +7,13 @@ passboolean :multiple, :flat, :other passthrough :other_desc passthrough :data_type embeds_many :options, enum_class: "Ecoportal::API::V2::Page::Component::SelectionOptions" + def empty? + values.empty? + end + def numeric? self.data_type == "num" end def text?