end
def property_value(property)
- if property.multi_values
+ if property.multi_values?
Property.values(property.key, @resource ? @resource.id : nil)
else
Property.value(property.key, @resource ? @resource.id : nil, '')
def input_name(property)
name = "settings[#{h property.key}]"
- if property.multi_values
+ if property.multi_values?
name += '[]'
end
name
end
def multi_values?
- (java_definition && (java_definition.multi_values || !java_definition.fields.blank?)) || (java_field_definition && java_field_definition.multi_values)
+ java_definition && (java_definition.isMultiValues() || !java_definition.fields.blank?)
end
def to_xml(xml=Builder::XmlMarkup.new(:indent => 0))