| 1 | # frozen_string_literal: true |
| 2 | |
| 3 | module Admin |
| 4 | # Shared base for the internal admin console. Every admin page requires a |
| 5 | # signed-in staff account, renders in the dedicated admin layout, and is kept |
| 6 | # out of search indexes. |
| 7 | class BaseController < ApplicationController |
| 8 | before_action :require_admin! |
| 9 | before_action :noindex! |
| 10 | |
| 11 | layout "admin" |
| 12 | end |
| 13 | end |