I have code:
if user.role == "topmanager" can :read, ActiveAdmin::Page, :name => "Dashboard" can :manage, Realty, agent: {agency_id: user.agency_id}...
And I want to add another condition, can :manage, Realty, agent: nilHow to do it? Defining it two times gets error:
UNDEFINED METHOD `REFLECT_ON_ASSOCIATION\' FOR CLASS:CLASS
How can I define multiple conditions for one ability?