-
Notifications
You must be signed in to change notification settings - Fork 0
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
show gift #11
Conversation
.reek.yml
Outdated
@@ -10,3 +10,4 @@ detectors: | |||
|
|||
exclude_paths: | |||
- db/migrate | |||
- app/controllers/gifts_controller.rb |
There was a problem hiding this comment.
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/*" |
There was a problem hiding this comment.
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
app/controllers/gifts_controller.rb
Outdated
@@ -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]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
There was a problem hiding this 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
show gift functionality