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

Wrong has_many association #23

Closed
pusewicz opened this issue Jun 6, 2018 · 1 comment
Closed

Wrong has_many association #23

pusewicz opened this issue Jun 6, 2018 · 1 comment
Labels

Comments

@pusewicz
Copy link
Contributor

pusewicz commented Jun 6, 2018

Hi @mikker!

has_many :passwordless_sessions, class_name: 'Passwordless::Session'

This should also have as: :authenticatable added, as it's a polymorphic association.

@mikker
Copy link
Owner

mikker commented Jun 6, 2018

Nice catch! Throw me a pull request if you want the contribution credit? Otherwise I'll add it later 🤓

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants