Closed damncabbage closed 10 years ago
Where am I going with this? I have an app-specific ActiveRecord adapter I'm working on (to handle record-locking to avoid race conditions, among other things), but the auto-inclusion in lib/workflow.rb prevents me from using it without forking the project entirely.
(I'm happy to have this closed if you don't feel it fits with the direction of the project.)
yes, this is the direction I would like to go too - enable custom AR persistence.
Will review after my computerless ;-) holiday - in a week...
Got it; thanks. :)
This is exactly the way I would implement the possibility for different persistent behaviours, e.g. persist new workflow state immediately on bang-method call (default) vs. later on save
call. But never found time for that ;-) - thank you very much!
Also solves #77 - custom ActiveRecord adapter (persisting on save
call) would help.
This PR:
workflow_adapter
class method first before going on to include ActiveRecord or Remodel adapters.From the included documentation change: