-
Notifications
You must be signed in to change notification settings - Fork 782
treat ActiveRecord::Relation as Array #917
base: master
Are you sure you want to change the base?
Conversation
👍 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 |
2 similar comments
👍 |
👍 |
+1 and looking forward to @ryanb coming back from sabbatical |
+1 |
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. |
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