Displaying 2 results from an estimated 2 matches for "evancha".
2009 Mar 01
1
Preventing read access to a model
In a model are there any methods that are called before providing
access to the model?
I''m exploring ways to enforce privileges in my app. Wondering if I can
define some sort of "before" method in the model to prevent read
access to the model unless certain conditions are true.
Thanks.
Evan
--~--~---------~--~----~------------~-------~--~----~
You received this message
2009 Dec 30
4
Validating the presence of two associated objects from both models
I have a model “Conversation” and a model “Leader”. A Conversation is always led by exactly 1 Leader.
I’ve overridden Conversation’s “validate” method to validate the presence of an associated Leader model.
If I add a similar validation to the Leader model, however, Conversations can no longer be saved on creation because the Leader model is invalid.
On creation of both a new Conversation and