class Follow < ActiveRecord::Base
  has_many :users
  has_many :user_follows, :class_name => "User"

  validates_presence_of :follow_level, :user_follow_id, :user_id
  # This validates that users can only follow users; there is no following
  # random numbers.
  validates_inclusion_of :user_follow_id, 
        :in => User.all.map { |e| e.id },
        :message => "You can only follow actual users!"
  #TODO: FIXME: OHNOES: So, yeah. unit test fails 'cause I can't figure out how
  #to have a field check itself against another field in a validation.
end
