How can I query for all the users who have an image attached and where the image is .variable??
e.g
I can do this
# controller
@users = User.all
view:
<% if user.image.attached? && user.image.variable? %>
<!-- display image -->
<% end %>
Rather than having that logic in the view, I wonder if I can simply query for only those @users which meet the conditions of both user.image.attached? and user.image.variable?
Is this possible with some Active Record query?