lib/relaxo/model/properties/attribute.rb in relaxo-model-0.4.5 vs lib/relaxo/model/properties/attribute.rb in relaxo-model-0.4.6

- old
+ new

@@ -72,12 +72,12 @@ end def initialize(klass) @klass = klass end - + def convert_to_primative(value) - if value.nil? or value.empty? + if value.nil? or (value.respond_to?(:empty?) and value.empty?) nil else @klass.convert_to_primative(value) end end