回答編集履歴
3
Shrineのキャッシュ削除について
test
CHANGED
@@ -33,3 +33,5 @@
|
|
33
33
|
配列全体に対してdestryをする?方法を調べる必要がある。
|
34
34
|
|
35
35
|
Shrineのキャッシュ削除についても調べる。
|
36
|
+
|
37
|
+
→ImageUploader にplugin :delete_promoted を追加することで削除成功。
|
2
未解決
test
CHANGED
@@ -32,20 +32,4 @@
|
|
32
32
|
|
33
33
|
配列全体に対してdestryをする?方法を調べる必要がある。
|
34
34
|
|
35
|
-
Shrineのキャッシュ
|
35
|
+
Shrineのキャッシュ削除についても調べる。
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
image_uploader.rbに移したところ、有効に利くようになった。
|
40
|
-
|
41
|
-
オプション内容はあまり理解できていないが、なんとなく便利そうな下記四つを追加。
|
42
|
-
|
43
|
-
Shrine.plugin :activerecord
|
44
|
-
|
45
|
-
Shrine.plugin :cached_attachment_data # for retaining the cached file across form redisplays
|
46
|
-
|
47
|
-
Shrine.plugin :restore_cached_data # re-extract metadata when attaching a cached file
|
48
|
-
|
49
|
-
Shrine.plugin :rack_file # for non-Rails apps
|
50
|
-
|
51
|
-
Shrine.plugin :delete_promoted
|
1
最終修正
test
CHANGED
@@ -32,4 +32,20 @@
|
|
32
32
|
|
33
33
|
配列全体に対してdestryをする?方法を調べる必要がある。
|
34
34
|
|
35
|
-
|
35
|
+
Shrineのキャッシュはshrineに打っていたオプションを
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
image_uploader.rbに移したところ、有効に利くようになった。
|
40
|
+
|
41
|
+
オプション内容はあまり理解できていないが、なんとなく便利そうな下記四つを追加。
|
42
|
+
|
43
|
+
Shrine.plugin :activerecord
|
44
|
+
|
45
|
+
Shrine.plugin :cached_attachment_data # for retaining the cached file across form redisplays
|
46
|
+
|
47
|
+
Shrine.plugin :restore_cached_data # re-extract metadata when attaching a cached file
|
48
|
+
|
49
|
+
Shrine.plugin :rack_file # for non-Rails apps
|
50
|
+
|
51
|
+
Shrine.plugin :delete_promoted
|