We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
to hide columns in the index page based on a CanCan ability simply add the condition on the column (here unless current_user.owner_id?)
index do column :email column :owner, :sortable => :owner_id unless current_user.owner_id? column :lessee, :sortable => :lessee_id unless current_user.lessee_id? column :admin default_actions end