mirror of
https://github.com/neocities/neocities.git
synced 2025-05-13 07:57:16 +02:00
deprecate the black box and the questions
This commit is contained in:
parent
b9530b3d43
commit
73f29bf9cc
4 changed files with 0 additions and 42 deletions
|
@ -1,15 +1,3 @@
|
|||
def generate_question
|
||||
if ENV['RACK_ENV'] == 'test'
|
||||
question_first_number = 1
|
||||
question_last_number = 1
|
||||
else
|
||||
question_first_number = rand 5
|
||||
question_last_number = rand 5
|
||||
end
|
||||
session[:question_answer] = (question_first_number + question_last_number).to_s
|
||||
[question_first_number, question_last_number]
|
||||
end
|
||||
|
||||
def dashboard_if_signed_in
|
||||
redirect '/dashboard' if signed_in?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue