-
Notifications
You must be signed in to change notification settings - Fork 1
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
refac & feat: now there is only one item details view instead of two, also design adjusted #264
base: dev
Are you sure you want to change the base?
Conversation
Gemfile.lock
Outdated
@@ -88,9 +88,9 @@ GEM | |||
bcrypt (3.1.18) | |||
bindata (2.4.14) | |||
bindex (0.8.1) | |||
bootsnap (1.13.0) | |||
bootsnap (1.15.0) |
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.
Is it necessary to update all these gems? It seems to me (and I could well be wrong :P) that this risks breaking things somewhere in the project.
Are there any new gems introduced?
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.
I've taken the liberty of undoing the effects of the bundle update
command you probably executed. This way, checks pass again.
@@ -4,7 +4,7 @@ class Item < ApplicationRecord | |||
|
|||
validates :name, presence: true | |||
validates :max_reservation_days, numericality: { greater_than_or_equal_to: 0, less_than_or_equal_to: 365 } | |||
validates :max_borrowing_days, numericality: { greater_than_or_equal_to: 0 } | |||
validates :max_borrowing_days, numericality: { greater_than: 0 } |
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.
This makes sense.
To keep track of these "on-the-side" changes, it might be nice to give a summary of changed things (that are not obvious from the PR title) in the PR.
Fixes #136