Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buy gift #12

Merged
merged 3 commits into from
Jul 19, 2024
Merged

Buy gift #12

merged 3 commits into from
Jul 19, 2024

Conversation

brunoLombardo
Copy link
Collaborator

basic logic and interface for purchase

Comment on lines 3 to 7
@purchase = Purchase.new(gift: selected_gift,
payment_method: first_payment_method,
amount: selected_amount,
customization_ids: params[:customizations_ids],
subtotal: params[:price].to_i * selected_amount)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just use purchase_params?

<div class = "<%= request.path.start_with?('/regalos') || current_page?('/') ? 'border-bottom-style-solid border-1 border-blue' : '' %>">
<div class = "<%= is_from_gift ? 'border-bottom-style-solid border-1 border-blue' : '' %>">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd use another name, one that indicates what the change does, like with_border. BTW, Is adding a border all that we need to do?

@JorgeLeites JorgeLeites merged commit 07a4d68 into main Jul 19, 2024
1 check passed
@JorgeLeites JorgeLeites deleted the buy_gift branch July 19, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants