Open mateusfdl opened 3 years ago
Can't help, but find your post very useful nonetheless. I was looking in the docs if passing a block is at all possible and couldn't find anything. I'm fine with writing do ... end
I experienced the same problem - Rails 6.0. Thanks for the pointer. do...end works, and I would not have thought to try it.
when:
CanCan handle undefined method exception (undefined method Note' for # )
when:
works fine
System configuration
Rails version:
6.1.3.2
Ruby version:
2.6.4
CanCanCan version
3.2.0