CSC/ECE 517 Fall 2022 - E2254: Refactor teams controller.rb: Difference between revisions
Jump to navigation
Jump to search
(In this project we refactored teams_controller.rb and some tests associated with it. Before we worked on it, teams_controller.rb had some problems that violated some essential Rails design principles.) |
(No difference)
|
Revision as of 17:36, 25 October 2022
Introduction
In this project we refactored teams_controller.rb and some tests associated with it. Before we worked on it, teams_controller.rb had some problems that violated some essential Rails design principles. Some methods have been moved to the teams.rb model class. Some duplicate code was removed. We added some comments for readability. And, we fixed tests to be more consistent with the program and execution.