Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if new_customer.blank?
- found_customer = current_user.customers.find_by_name(customer_name)
- elsif new_customer.name == customer_name
- found_customer = new_customer
- else
- found_customer = current_user.customers.find_by_name(customer_name)
- end
Add Comment
Please, Sign In to add comment