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

Update initializer.rb #375

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update initializer.rb #375

wants to merge 1 commit into from

Conversation

5minpause
Copy link

@5minpause 5minpause commented Sep 2, 2024

Move token_randomness config to the user module. Before it was placed in the template into the controller module, which leads to an error if configured:

NoMethodError:
  undefined method `token_randomness=' for module Sorcery::Controller::Config

The attribute is part of the Sorcery::Model::Config module though:

attr_accessor :token_randomness

Please ensure your pull request includes the following:

  • Description of changes
  • Update to CHANGELOG.md with short description and link to pull request
  • Changes have related RSpec tests that ensure functionality does not break

Move `token_randomness` config to the user module.
Before it was placed in the template into the controller module, which leads to an error if configured:

```ruby
NoMethodError:
  undefined method `token_randomness=' for module Sorcery::Controller::Config
```
The attribute is part of the `Sorcery::Model::Config` module though: https://github.com/Sorcery/sorcery/blob/d8ce48a407d0b24ed20c8c8bd5010c9b084cd1b0/lib/sorcery/model/config.rb#L41
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