tardjo
tardjo

Reputation: 1654

how to access current_user in activeadmin rails

How to access current_user in activeadmin rails?

like devise current_user, but i'dont know how to call current_user in active_admin rails?

thanks before

Upvotes: 0

Views: 1721

Answers (1)

Oleg Haidul
Oleg Haidul

Reputation: 3732

Try to use current_admin_user. because the ActiveAdmin user model is called 'AdminUser' by default.

Upvotes: 3

Related Questions