[Solved] ruby on rails – current_user on model

[ad_1]

current_user is a devise helper to be used on Views and Controllers. If you have an instance method that needs the current_user you should probably move it’s logic to a Controller.

It’s better explained here: Access to current_user from within a model in Ruby on Rails

[ad_2]

solved ruby on rails – current_user on model