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
Fit reg 1920 code #26276
Fit reg 1920 code #26276
Conversation
photoRelease: [YES], | ||
liabilityWaiver: [YES], | ||
}.freeze | ||
end |
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.
A lot of the content in here seems potentially year-specific; what's the long-term goal here?
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 think much of what is in here will be relevant in future years, so I am erring on the side of starting with it in the base class and in future years we can move pieces that aren't being shared into year-specific classes, rather than pulling shared pieces back up into the parent from the year-specific classes.
return | ||
end | ||
|
||
super |
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 isn't really a super class to invoke here. This should be removed. If there are fields that we'll always want, they should be here. Otherwise this should be a method that expects a derived class to override and throws an exception if it doesn't
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.
now this just calls the super class (Pd::Form)'s method. Derived classes can add additional validations.
(merge after #26265)
FitWeekend1920Registration
andFitWeekendRegistrationBase
models