gonzalo-bulnes / simple_token_authentication

Simple (and safe*) token authentication for Rails apps or API with Devise.
GNU General Public License v3.0
1.51k stars 238 forks source link

acts_as_token_authenticatable causes a DEPRECATION WARNING #358

Open thomasdarde opened 4 years ago

thomasdarde commented 4 years ago

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 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