Skip to content

acts_as_token_authenticatable causes a DEPRECATION WARNING #358

@thomasdarde

Description

@thomasdarde

DEPRECATION WARNING: Class level methods will no longer inherit scoping from create in Rails 6.1. To continue using the scoped relation, pass it into the block directly. To instead access the full set of models, as Rails 6.1 will, use User.unscoped, or User.default_scoped if a model has default scopes. (called from block in class:UserTest at /Users/test/token_auth/test/models/user_test.rb:5)

This very simple project : https://github.com/thomasdarde/token_auth shows the depreacation warning, just launch rails test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions