You’re not receiving notifications from this thread.
Grabbing all the has_many relations of a specific collection
class User < ActiveRecord::Base
class Photo < ActiveRecord::Base
Each user has a "shadowbanned" attribute (t/f). I'd like to be able to grab all the photos where the users aren't shadowbanned.
How would you recommend I set up either the scope or the association to have Rails do the most work possible?