I declared a test model that inherits from RulesModel. I added a test predicate in the Meta class mapped to the add action however I'm not sure whether the intended behavior of this feature is, for the predicate to be executed on every call of save() on the model or is this just so that we have simpler access to some model predicates?
I declared a test model that inherits from
RulesModel
. I added a test predicate in theMeta
class mapped to theadd
action however I'm not sure whether the intended behavior of this feature is, for the predicate to be executed on every call ofsave()
on the model or is this just so that we have simpler access to some model predicates?