I need to call current_user (define in ApplicationControler like an helper), in my User
model.
I test ApplicationController.helpers.curret_user but not works:
irb(main):217:0> ApplicationController.helpers.current_user
NoMethodError: undefined method `current_user' for nil:NilClass
but this method works fine in controllers and views...
So how can I get my current user in model?