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

Add an option on model construction to forbid scan #119

Open
ThibaultRuby opened this issue Aug 30, 2021 · 0 comments
Open

Add an option on model construction to forbid scan #119

ThibaultRuby opened this issue Aug 30, 2021 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@ThibaultRuby
Copy link
Collaborator

ThibaultRuby commented Aug 30, 2021

It would be good to have the ability to specify on model construction that we forbid scan.

class MyModel extends Model<unknown> {
   allowScan = false;
}

If you perform a Model.prototype.scan it will throw if allowScan === false

@ThibaultRuby ThibaultRuby changed the title Throw on scan by default Configure models to throw on scan by default unless specified Aug 16, 2023
@ThibaultRuby ThibaultRuby self-assigned this Aug 16, 2023
@MarioArnt MarioArnt added good first issue Good for newcomers major labels Oct 12, 2023
@ThibaultRuby ThibaultRuby changed the title Configure models to throw on scan by default unless specified Add an option on model construction to forbid scan Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants