All basic question types
This commit is contained in:
parent
3e1e5618ca
commit
4fe218166f
51 changed files with 760 additions and 92 deletions
|
@ -1,4 +1,16 @@
|
|||
class ApplicationController < ActionController::Base
|
||||
# Only allow modern browsers supporting webp images, web push, badges, import maps, CSS nesting, and CSS :has.
|
||||
allow_browser versions: :modern
|
||||
|
||||
before_action :require_authorization
|
||||
|
||||
def authorized?
|
||||
cookies.signed[:_entrance_exam_authorized].present?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def require_authorization
|
||||
redirect_to new_sessions_path unless authorized?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue