search for: imagejob

Displaying 1 result from an estimated 1 matches for "imagejob".

Did you mean: image_bo
2010 Jul 28
1
paperclip, authlogic and callback issue
...fined?(@current_user) @current_user = current_user_session && current_user_session.record end and the following after_save callback to regenerate the profile image if the image has changed. after_save do |user| if user.image_changed? Delayed::Job.enqueue ImageJob.new(user.id) end end The current_user method issues a UserSession.find call and Looking at the docs it seems UserSession.tries to Log the user in, which results in an update to certain fields (updated_at, token etc. but not the profile image), which results in a save of the user recor...