Select single column while using with_permissions_to(:read)?

17 views
Skip to first unread message

wgrrrr

unread,
May 3, 2012, 3:02:04 PM5/3/12
to declarative_...@googlegroups.com
Hi there,

I'm trying to figure out how to select only a single column in conjunction with using with_permissions_to. It always selects all columns from all the tables involved in the authorization check. Does anyone know if this is possible?

Here is what I am trying:

MyObject.with_permissions_to(:read).select(:common_description)

However, if I remove the with_permissions_to(:read) call the single column select works as expected.

Thanks!

wgrrrr

unread,
Jun 16, 2012, 3:23:37 PM6/16/12
to declarative_...@googlegroups.com
Just bumping this up again... has anyone figured out how to select individual columns while using the with_permissions_to method? I've seemingly looked at most of the internet, but can't find any reference to this at all.

Any help would be very appreciated! Thanks.
Reply all
Reply to author
Forward
0 new messages