search for: image_changed

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

Did you mean: _page_changed
2010 Jul 28
1
paperclip, authlogic and callback issue
...current_user return @current_user if defined?(@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)...