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

Model instances do not have model_name in older Rails versions #9

Open
jnicklas opened this issue Jan 7, 2016 · 1 comment
Open

Comments

@jnicklas
Copy link
Collaborator

jnicklas commented Jan 7, 2016

Seems like this was added fairly recently. We assume that model instances respond to model_name here, but this is only available as a class method in older Rails versions.

@Burgestrand
Copy link
Member

Well… damn! We might want to clone your implementation from pundit eventually anyway!

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

No branches or pull requests

2 participants