Using the `can?` method with extra args

6 views
Skip to first unread message

Tad Thorley

unread,
Dec 13, 2017, 6:12:27 PM12/13/17
to cancancan
While reading through the source code, I noticed in ability.rb that the `can?` method has the definition:

def can?(action, subject, *extra_args)

However, I can't find any examples where the extra_args parameter is used in the documentation or the tests. Can I have some examples?
Reply all
Reply to author
Forward
0 new messages