Hello everyone!
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: nil
How 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?