module CensorBear class ApplicationController < ActionController::Base include Pagy::Backend def current_user main_app.scope.request.env['warden'].user end end end