You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Triggering a state change on a unsaved AR model raises:
ActiveRecord::ActiveRecordError: can not update on a new record object
/activerecord-3.2.22/lib/active_record/persistence.rb:195:in `update_column'
/workflow-1.2.0/lib/workflow/adapters/active_record.rb:20:in `persist_workflow_state'
/workflow-1.2.0/lib/workflow.rb:124:in `process_event!'
/workflow-1.2.0/lib/workflow.rb:64:in `block (4 levels) in assign_workflow'
Triggering a state change on a unsaved AR model raises:
I think it should only be updated in memory if new_record?
Ref: https://github.com/geekq/workflow/blob/master/lib/workflow/adapters/active_record.rb#L17
The text was updated successfully, but these errors were encountered: