All Questions
4 questions
1
vote
1
answer
976
views
NoMethodError undefined method `admin?' for nil:NilClass Pundit, Devise Rails
I'm trying to integrate pundit with my active admin and devise configuration. But the app works weirdly. It takes in model/record as current_user.
my policy file:
class AdminUserPolicy
attr_reader ...
1
vote
1
answer
1k
views
Switching Apartment tenants in Active Admin
This is an extension of my previous post:
Active Admin and the Apartment Gem
I thought I had this working but I am stuck. I have a Company model in the public schema as the tenant model and ...
4
votes
2
answers
4k
views
Active Admin, Devise and Pundit (Pundit::PolicyScopingNotPerformedError)
I have an existing Rails app with Devise authenticating the User model and Pundit authenticating against an Enrollment model which links User to my Company model. Both User and Company are in the ...
0
votes
3
answers
988
views
Can you disable Pundit with Devise and Active Admin?
I have an existing Rails app that has Devise / Pundit running on the User model.
I have followed:
How to get Active Admin to work with Pundit after login
https://gist.github.com/tomchentw/8579571
...