lib/mousetrap/customer.rb in ryanwood-mousetrap-0.5.6 vs lib/mousetrap/customer.rb in ryanwood-mousetrap-0.5.7

- old
+ new

@@ -150,9 +150,10 @@ :email => attributes[:email], :firstName => attributes[:first_name], :lastName => attributes[:last_name], :company => attributes[:company] } + mutated_hash.delete_if{ |k,v| v.nil? } mutated_hash.merge!(:code => attributes[:code]) if new_record mutated_hash end def self.attributes_from_api(attributes)