I want to create a model, "Whitelist" to build a list of users that I do not want displayed in my main model, "User".
Example Controller
def index
@users = User.find(:all) #These are to be filtered behind the scenes in the model
end
Example Model
class User ActiveRecord::Base
has_many :whitelist
def self.find
#Add something that will lookup items in the Whitelist model and filter those matches out of a find(:all) in the User model.
end
I hope this makes sense. Thanks for the help.