RolifyCommunity / rolify

Role management library with resource scoping
https://rolifycommunity.github.io/rolify/
MIT License
3.16k stars 404 forks source link

methods returning array instead of active record collection object #516

Open forever-sumit opened 5 years ago

forever-sumit commented 5 years ago

most of rolify methods returning array object not the active record object, this is very annoying. its break chaining feature of rails.

I found one open issue for mongoid 473 and I'm opening here for Active Record. but my most concern is, rolify should return results as per the ORM used in the application.

cpanderson commented 2 years ago

It seems that with_role returns a collection but with_any_role returns an array.