blob: 4348c85b2be131d895e583d73f649c0e1c12142f (
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; Role.new(:guest); end
def token; nil; end
def valid?; true; end
def save!; true; end
end
|