Skip to content
Permalink
Branch: master
Commits on Nov 20, 2014
  1. Fix bug with remove_previously_stored_#{column} callback, when updati…

    huacnlee committed Nov 20, 2014
    …ng in a transaction, and that process is rollback. Again~
Commits on Aug 27, 2014
  1. Fix bug with remove_previously_stored_#{column} callback, when updati…

    huacnlee committed Aug 27, 2014
    …ng in a transaction, and that process is rollback.
    
    The old file will be delete, but the new file name can not store success into database.
    
    ## For example:
    
    User.transaction do
      @user.avatar = new_file
      @user.save
      # new file stored
      # old file deleted with callback: remove_previously_stored_avatar
      # ... do bla bla
      raise ActiveRecord::Rollback
    end
You can’t perform that action at this time.