CyberCraftInc / vacation_system

Cyber Craft Vacation System
0 stars 0 forks source link

Improve RoR VacationRequest model validation #21

Closed eleidan closed 9 years ago

eleidan commented 9 years ago

The VacationRequest#cannot_intersect_with_other_vacations method must exclude records with both cancelled and declined statuses. As a result, any record that intersects with records with mentioned above statuses, is valid one. @alazarchuk , @epmlys , @rubycop , @afurm