-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move field requireness logic to Field::Base
Given that application helpers are available throughout the app and the highly specific nature of some of the actions required to determine whether or not a field is required, moving that logic to Field::Base feels more appropriate. This also allows us to add more complex checks to determine whether or not a field is required without exposing that logic everywhere in the application.
- Loading branch information
Jonas Meinerz
committed
Oct 23, 2020
1 parent
a5d695d
commit cbf9fd0
Showing
3 changed files
with
9 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters