lib/adauth/rails/model_bridge.rb in adauth-2.0.0pre vs lib/adauth/rails/model_bridge.rb in adauth-2.0.0pre1

- old
+ new

@@ -31,10 +31,11 @@ # Uses AdauthMappings to update the values on the model using the ones from Adauth def update_from_adauth(adauth_model) self.class::AdauthMappings.each do |k, v| setter = "#{k.to_s}=".to_sym - self.send(setter, adauth_model.send(v)) + value = v.is_a?(Array) ? v.join(", ") : v + self.send(setter, adauth_model.send(value)) end self.save end # Class Methods for ModelBridge \ No newline at end of file