I need to know the ID of the current user in a model:
def after_save desc, points=nil, nil if answer_index == daily_question.correct_answer_index desc
assuming the user is loggedin you can use
UserSession.find.user
You might want to add checks to ensure UserSession.find returns something before calling .user
UserSession.find
.user