Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix papertrail integration #200

Closed
wants to merge 4 commits into from

Conversation

jamesmacwilliam
Copy link

  • Add option to call after_update hooks when transitioning state.
  • Papertrail uses the after upate hook of a model, this ensures that the
    update hooks are called when changing state.
  • uses:
workflow do
  with_callbacks
    # other important directives
  end

when with_callbacks is used in the workflow specification,
ActiveRecord update callbacks will be invoked when transitioning state

- Papertrail uses the after upate hook of a model, this ensures that the
update hooks are called when changing state.
- add protected attributes as a dev dependency (later versions of AR
require this)
- uses:

```
workflow do
  with_callbacks
  # other important directives
end
```

when `with_callbacks` is used in the workflow specification,
ActiveRecord update callbacks will be invoked when transitioning state
@geekq geekq closed this Jan 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants