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

show gift #11

Merged
merged 2 commits into from
Jul 8, 2024
Merged

show gift #11

merged 2 commits into from
Jul 8, 2024

Conversation

brunoLombardo
Copy link
Collaborator

show gift functionality

.reek.yml Outdated
@@ -10,3 +10,4 @@ detectors:

exclude_paths:
- db/migrate
- app/controllers/gifts_controller.rb
Copy link
Member

Choose a reason for hiding this comment

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

Do not exclude the controller from all controls. Just exclude it from the ones we don't want to run

.rubocop.yml Outdated
@@ -8,6 +8,7 @@ AllCops:
- "db/schema.rb"
- "vendor/bundle/**/*"
- "db/migrate/*"
- "test/factories/*"
Copy link
Member

Choose a reason for hiding this comment

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

Same here. Just exclude the factories from the checks we don't want to run

@@ -14,6 +14,11 @@ def index
@gifts = query.page(params[:page])
end

def show
@gift = Gift.find(params[:id])
# @gift = Gift.includes(:gift_products, :products).find(params[:id])
Copy link
Member

Choose a reason for hiding this comment

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

👀

Copy link
Member

@JorgeLeites JorgeLeites left a comment

Choose a reason for hiding this comment

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

Nice work! Left a couple of comments

@JorgeLeites JorgeLeites merged commit 8f6a7a0 into main Jul 8, 2024
1 check passed
@JorgeLeites JorgeLeites deleted the show_gift branch July 8, 2024 13:26
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