I want to generate an ActiveRecord relation that looks like this:
@profiles = Profile.published.order("RANDOM()").limit(8) + Profile.where(demo_linked: true)
The issue with the above is that it returns an array, which is what I don't want.
I would like the above to be an ActiveRecord relation.
Thoughts?
I eventually got it with the following: