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
Define ability with a SQL array and call #inspect.
CanCan::Rule.new(true, :read, Watermelon, ['visible=?', true], {}, {}).inspect
The method displays the rule in a string format.
There is an error:
TypeError: no implicit conversion of nil into String # ./lib/cancan/rule.rb:37:in `+' # ./lib/cancan/rule.rb:37:in `inspect' ...
Rails version: 5.1.7 (not relevant) Ruby version: 2.4.6 (not relevant) CanCanCan version 3.0.1
The text was updated successfully, but these errors were encountered:
fixed in 3.0.2
Sorry, something went wrong.
coorasse
Successfully merging a pull request may close this issue.
Steps to reproduce
Define ability with a SQL array and call #inspect.
Example
Expected behavior
The method displays the rule in a string format.
Actual behavior
There is an error:
System configuration
Rails version:
5.1.7 (not relevant)
Ruby version:
2.4.6 (not relevant)
CanCanCan version
3.0.1
The text was updated successfully, but these errors were encountered: