Skip to content

101: Allow the noPaperTrail option to be set via continuation-local-s…#102

Open
jlw0 wants to merge 1 commit into
nielsgl:mainfrom
jlw0:101-no-paper-trail-cls
Open

101: Allow the noPaperTrail option to be set via continuation-local-s…#102
jlw0 wants to merge 1 commit into
nielsgl:mainfrom
jlw0:101-no-paper-trail-cls

Conversation

@jlw0

@jlw0 jlw0 commented Apr 3, 2020

Copy link
Copy Markdown

101: Allow the noPaperTrail option to be set via continuation-local-storage

#101

Comment thread test/models/user.js
// associations can be defined here
};

User.Revision = User.hasPaperTrail();

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to remove this line for a couple reasons. First, this line was causing the hooks to be registered twice for this model since this method is also called in the tests. Second, if we call "hasPaperTrail" here, the hooks will not be compatible with the CLS.

@jlw0

jlw0 commented Apr 3, 2020

Copy link
Copy Markdown
Author

@nielsgl it has been a while since the last release. Is this project still active?

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.

1 participant