lib/ohm/contrib/lunar_macros.rb in ohm-contrib-0.0.28 vs lib/ohm/contrib/lunar_macros.rb in ohm-contrib-0.0.29

- old
+ new

@@ -37,10 +37,14 @@ [:fuzzy, :text, :number, :sortable].each do |type| self.class.lunar_fields(type).each do |field| value = send(field) - i.send type, field, value unless value.to_s.empty? + if type == :text and value.kind_of?(Enumerable) + i.text field, value.join(' ') unless value.empty? + else + i.send type, field, value unless value.to_s.empty? + end end end end end