search for: tmp_custom

Displaying 1 result from an estimated 1 matches for "tmp_custom".

Did you mean: sip_custom
2006 Mar 14
4
Two Customer Types - Best Design Principle?
...But, if the customer does have an existing record, is there an elegant way to "merge" the extended details from the form with the existing email address marked record on the database? Currently I have the code: form = params[:new_customer] email = form[:email] tmp_customer = Customer.find_by_email(email) if tmp_customer != nil && (tmp_customer.level == ''mailinglist'' || tmp_customer.level == ''test'') @customer = Customer.new(params[:new_customer]) @customer.id = tmp_customer.id @...