Open jnicklas opened 8 years ago
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.
model_name
Well… damn! We might want to clone your implementation from pundit eventually anyway!
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.