I have a User model. When users themselves register (1), they can enter only so much information. When an admin makes a user (2), they can enter everything. The validation rules of (1) are almost all used in (2) and a few more are made for (2).
How do I configure a FormModel so it understands this, without repeating myself in entirely different FormModels?
I could create PublicUserSignupForm and a AdminUserSignupForm that extends PublicUserSignupForm and fiddle with the rules method… I think…
Could I also use the on options in the rules? For instance
Also, if my custom model method onlySpecificCharacters depends on context (let’s say an object that’s ‘stored’ in the Controller), how would I reach that context from within the model?