Class: RailsOnboarding::Admin::BaseController

Inherits:
RailsOnboarding::ApplicationController show all
Includes:
Pagy::Method, RailsOnboarding::AdminAuthorization
Defined in:
app/controllers/rails_onboarding/admin/base_controller.rb

Overview

Base controller for admin interface Provides authentication and authorization for admin actions

Constant Summary collapse

DEFAULT_PER_PAGE =
25
MAX_PER_PAGE =

Upper bound on the client-supplied ?per_page=, so a crafted URL can't ask for a whole table in one query.

100