We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
in file https://github.com/CanCanCommunity/cancancan/blob/develop/lib/cancan/rule.rb#L94 is do follow comparison
subject.class.to_s == sub.to_s
but ´subject.class.to_s´ aways return "Class" instead of "ModelName" . This is correct?
The text was updated successfully, but these errors were encountered:
When checking permissions on instances of class (i.e. on the show action), the instance is passed in here and instance.class.to_s will be "ModelName".
show
instance.class.to_s
Sorry, something went wrong.
No branches or pull requests
in file https://github.com/CanCanCommunity/cancancan/blob/develop/lib/cancan/rule.rb#L94 is do follow comparison
subject.class.to_s == sub.to_s
but ´subject.class.to_s´ aways return "Class" instead of "ModelName" . This is correct?
The text was updated successfully, but these errors were encountered: