class Avo::ApplicationController
def set_authorization
def set_authorization # We need to set @resource_name for the #resource method to work properly set_resource_name @authorization = if @resource @resource.authorization(user: _current_user) else Services::AuthorizationService.new _current_user end end