-
Notifications
You must be signed in to change notification settings - Fork 0
Flow ideas
Nate Holland edited this page Nov 9, 2013
·
1 revision
Here are some ideas on how to handle flow:
For each of the Document types (not document lang) we should have a number of booleans for published, new, inprogress, pending, rejected and so on. Then we will define a before save filter which will set all of those booleans accordingly based on what the documents' document_lang's statuses are. So if one of the children is published then the document is published. If one of the children is new then the document can be considered new. Blah blah blah. There is an example on a published? method in the flow branch which will soon be moved to model.
Also we can make the published? new? and so on a Module that get's mixed in and we just dynamically determine the type. That would be really cool.