You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 24, 2020. It is now read-only.
errors << user.name + " has overdue reservations that prevent new ones from being created. "unlessuser.reservations.overdue.empty?
106
106
107
107
res_array.eachdo |res|
108
-
errors << "Reservation cannot be made in the past. "unlessres.not_in_past?ifself.class == CartReservation
108
+
errors << "Reservation cannot be made in the past. "unlessres.not_in_past?
109
109
errors << "Reservation start date must be before due date. "unlessres.start_date_before_due_date?
110
110
errors << "Reservation must be for a piece of equipment. "unlessres.not_empty?
111
111
errors << "#{res.equipment_object.name} must be of type #{res.equipment_model.name}. "unlessres.matched_object_and_model?
112
-
errors << "#{res.equipment_model.name} should be renewed instead of re-checked out. "unlessres.not_renewable?ifself.class == CartReservation
112
+
errors << "#{res.equipment_model.name} should be renewed instead of re-checked out. "unlessres.not_renewable?
113
113
errors << "#{res.equipment_model.name} cannot be reserved for more than #{res.equipment_model.category.maximum_checkout_length.to_s} days at a time. "unlessres.duration_allowed?
114
114
errors << "#{res.equipment_model.name} is not available for the full time period requested. "unlessres.available?(res_array)
115
115
errors << "A reservation cannot start on #{res.start_date.strftime('%m/%d')} because equipment cannot be picked up on that date. "unlessres.start_date_is_not_blackout?
0 commit comments