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

[readme?] Problem when user class has different name than User #35

Closed
piotaixr opened this issue Feb 21, 2019 · 1 comment · Fixed by #36
Closed

[readme?] Problem when user class has different name than User #35

piotaixr opened this issue Feb 21, 2019 · 1 comment · Fixed by #36

Comments

@piotaixr
Copy link
Contributor

piotaixr commented Feb 21, 2019

Version: 0.3.4

My user class is sth like BlahUser.
Configuration:

PolicyManager::Config.setup do |c|
  c.user_resource = BlahUser # defaults to User
  c.admin_user_resource = BlahUser # defaults to User
  [...]
end

When i visit /policies/user_portability_requests, i have an error saying that PortabilityRequests does not have a field blah_user_id. I had to change the migration CreatePolicyManagerPortabilityRequests by hand (rename user_id to blah_user_id).

Is it the expected behavior or am I missing sth? (or the Readme?)

@piotaixr
Copy link
Contributor Author

PR opened ;-)

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 a pull request may close this issue.

1 participant