# app/controllers/application_controller.rb or any controller class ApplicationController < ActionController::Base def current_ability @current_ability ||= Ability.ability_for current_customer end end