gregbell/active_admin — Issue #683: :current_admin_user in model
Author: BlackdolphinMedia
Created: 2011-10-26 04:48:45+00:00
State: open

hy there is there a way i can get the current user id in a model ?

i try to set it in the controller via a instance variable

like

@str_cur_user = current_admin_user.id.to_i

but i get a undefined

realy appreciate any hints