cancan icon indicating copy to clipboard operation
cancan copied to clipboard

treat ActiveRecord::Relation as Array

Open chrosciu opened this issue 11 years ago • 14 comments

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 https://github.com/ryanb/cancan/issues/916

chrosciu avatar Aug 13 '13 08:08 chrosciu

:+1: merge this quickly please is cancan dead or what?

mhenrixon avatar Aug 17 '13 16:08 mhenrixon

+1 for merge!

Loremaster avatar Aug 19 '13 12:08 Loremaster

:100:

dgilperez avatar Aug 20 '13 11:08 dgilperez

+1 Having the exact same issue after upgrading from Rails 3.2 to 4.0. Using the cancan gem version 1.6.10.

ghost avatar Aug 23 '13 16:08 ghost

:+1:

michaldarda avatar Sep 16 '13 13:09 michaldarda

About time to merge. This has been a big annoyance for me.

johncalvinyoung avatar Sep 17 '13 18:09 johncalvinyoung

+1

ghost avatar Sep 17 '13 21:09 ghost

:+1:

noiseunion avatar Oct 29 '13 16:10 noiseunion

:+1:

ricardodovalle avatar Oct 29 '13 18:10 ricardodovalle

+1 and looking forward to @ryanb coming back from sabbatical

nacengineer avatar Dec 12 '13 18:12 nacengineer

+1

sproot avatar Jan 27 '14 13:01 sproot

I'm hitting this too. Please merge.

jcoyne avatar Jan 28 '14 19:01 jcoyne

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 :frowning:

ghost avatar Jan 28 '14 19:01 ghost

@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.

nacengineer avatar Jan 28 '14 20:01 nacengineer

This change has been included in cancan successor: https://github.com/bryanrite/cancancan.

chrosciu avatar Feb 21 '14 19:02 chrosciu