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

Incorrectly defined user_class on Ruby 3.0.6, Rails 6.1 #355

Open
legacy370 opened this issue Dec 1, 2023 · 1 comment
Open

Incorrectly defined user_class on Ruby 3.0.6, Rails 6.1 #355

legacy370 opened this issue Dec 1, 2023 · 1 comment
Labels
bug Something isn't working can't replicate The issue described can't be replicated, and requires additional information

Comments

@legacy370
Copy link

Configuration

  • Sorcery Version: 0.15.0
  • Ruby Version: 3.0.6
  • Framework: Rails 6.1
  • Platform: Ubuntu

Expected Behavior

Access http://localhost:3000/
Enter email and password
Successful login

Actual Behavior

ArgumentError in SessionsController#create
You have incorrectly defined user_class or have forgotten to define it in intitializer file (config.user_class = 'User').

Steps to Reproduce

  1. Everything works with Ruby 2.6.6, Rails 6.0
  2. The last line of my "config/initializers/sorcery.rb" file is, and has been for several years,
    config.user_class = "Suser"
  3. No change to this initializer
  4. With Ruby 3.0.6 and Rails 6.1, I get the above error message.
@willnet
Copy link
Member

willnet commented Mar 27, 2024

@legacy370 I couldn't reproduce the behavior in my environment. Could you provide instructions on how to replicate it from scratch, or perhaps prepare a sample application?

@joshbuker joshbuker added bug Something isn't working can't replicate The issue described can't be replicated, and requires additional information labels Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working can't replicate The issue described can't be replicated, and requires additional information
Projects
None yet
Development

No branches or pull requests

3 participants