[Solved] ruby on rails – current_user on model
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 solved ruby on rails – current_user on model