lib/faceted/presenter.rb in faceted-0.4.16 vs lib/faceted/presenter.rb in faceted-0.4.17

- old
+ new

@@ -111,10 +111,10 @@ self.id = obj.id end def save self.class.fields.each do |k| - if val = self.send(k) && ! val.empty? + if val = self.send(k) && ! val.blank? self.object.send("#{k}=", val) if self.object.respond_to?("#{k}=") end end self.object.save! end