This fixes the problem with Rails 4, where ActiveRecord::Relation is no longer recognized as Array, which gives problems when defining abilities with joins - see #916
Add Support for Strong Parameters
treat ActiveRecord::Relation as Array
👍 merge this quickly please is cancan dead or what?
+1 for merge!
+1 Having the exact same issue after upgrading from Rails 3.2 to 4.0. Using the cancan gem version 1.6.10.
About time to merge. This has been a big annoyance for me.
+1 and looking forward to @ryanb coming back from sabbatical
I'm hitting this too. Please merge.
If Railscasts.com is any indication, Ryan Bates is not actively working on projects right now. If Ryan could delegate responsibility for CanCan to someone else, that would be wonderful. If someone here could take the existing pull requests and begin to maintain this gem again, I would be grateful. Until that time, I have stopped using CanCan in any new applications or in any Rails 4 application. I have moved to Pundit.
It would appear that this gem is becoming abandonware, if it isn't already 😦
@bignerdranchdan @ryanb is on sabbatical due to burnout. He'll most likely be back, but it may be some time yet. Not quite abandonware yet.
This change has been included in cancan successor: https://github.com/bryanrite/cancancan.
make gem compatible with rspec 3.x
Merge branch 'support_strong_parameters'