You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
method CanCan::ConditionsMatcher#matches_block_conditions consumes two arguments (subject, *extra_args), but it is called in with CanCan::ConditionsMatcher#matches_conditions? with three (subject, attribute, *extra_args).
It makes extra_args to be [nil] which is tried to be passed to method reference proc.
Steps to reproduce
Define ability with method reference instead of block.
Example:
Gist to reproduce:
https://gist.github.com/wojw5/d0f73e6457a8bbb1a976a07a991a5e93
Expected behavior
Error is not thrown, ability is checked
Actual behavior
method
CanCan::ConditionsMatcher#matches_block_conditions
consumes two arguments (subject
,*extra_args
), but it is called in withCanCan::ConditionsMatcher#matches_conditions?
with three (subject
,attribute
,*extra_args
).It makes
extra_args
to be[nil]
which is tried to be passed to method reference proc.System configuration
Rails version:
4.2.11 (not related)
Ruby version:
2.5.5 (not related)
CanCanCan version
3.0.0
The text was updated successfully, but these errors were encountered: