Any reasons not to use relations and joins?
Sorry for the late reply!
I'm not sure I understand your question. In the example, Service and Provider are related, and I suppose you could do something like,
Service
Provider
@q = Service.all.joins(:provider).ransack(params[:q])
perhaps? But I have not tested it. Moreover, this would bypass any resource authorization libraries (like Cancan)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Any reasons not to use relations and joins?
Sorry for the late reply!
I'm not sure I understand your question. In the example,
Service
andProvider
are related, and I suppose you could do something like,perhaps? But I have not tested it. Moreover, this would bypass any resource authorization libraries (like Cancan)