Skip to content

Instantly share code, notes, and snippets.

@madzhuga
Created November 14, 2017 05:11
Show Gist options
  • Select an option

  • Save madzhuga/638a37bfc9d184e6b55b15942976c109 to your computer and use it in GitHub Desktop.

Select an option

Save madzhuga/638a37bfc9d184e6b55b15942976c109 to your computer and use it in GitHub Desktop.
class CollectUserDataTemplate < RailsWorkflow::OperationTemplate
def after_operation_create(new_operation)
new_operation.data[:new_key] = 'new_value'
# new_operation.process.operations
new_operation.title += " [#{new_operation.data[:user].email}]"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment