aboutsummaryrefslogtreecommitdiff
blob: 2c018035c49d64a1b4d3f8069b23ec333fad4d9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Model representing guest users.
# It has methods that allow us to treat Guests as regular users.
class Guest < Hobo::Guest
  def administrator?; false; end
  def answered_questions; []; end
  def any_pending_acceptances?; false; end
  def id; nil; end
  def mentor; nil; end
  def mentor_is?(x); false; end
  def nick; nil; end
  def project_lead; false; end
  def questions_to_approve; []; end
  def role; RichTypes::Role.new(:guest); end
  def token; nil; end
  def valid?; true; end
  def save!; true; end
end