diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-05-01 23:27:54 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-05-01 23:27:54 +0300 |
commit | 9bb7abedf57f5325a92bebc2d93b85cf7e1fc303 (patch) | |
tree | 84fe11877609631929b2911ff44bb0d500c8bc2a /app/models/lfs_object.rb | |
parent | 9267ef0bd1d2d9ee4b7fe596762fec3e978a02f3 (diff) |
Fix file_store for artifacts and lfs when saving
Diffstat (limited to 'app/models/lfs_object.rb')
-rw-r--r-- | app/models/lfs_object.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/lfs_object.rb b/app/models/lfs_object.rb index 6b7f280fb70..84487031ee5 100644 --- a/app/models/lfs_object.rb +++ b/app/models/lfs_object.rb @@ -11,7 +11,7 @@ class LfsObject < ActiveRecord::Base mount_uploader :file, LfsObjectUploader - after_save :update_file_store + after_save :update_file_store, if: :file_changed? def update_file_store # The file.object_store is set during `uploader.store!` |