@@ -74,8 +74,10 @@ module Attached::Model
74
74
# The system has been designed to having you go through the ActiveStorage::Attached::One
75
75
# proxy that provides the dynamic proxy to the associations and factory methods, like +attach+.
76
76
#
77
- # If the +:dependent+ option isn't set, the attachment will be purged
78
- # (i.e. destroyed) whenever the record is destroyed.
77
+ # The +:dependent+ option defaults to +:purge_later+. This means the attachment will be
78
+ # purged (i.e. destroyed) in the background whenever the record is destroyed.
79
+ # If an ActiveJob::Backend queue adapter is not set in the application set it to
80
+ # +purge+ instead.
79
81
#
80
82
# If you need the attachment to use a service which differs from the globally configured one,
81
83
# pass the +:service+ option. For example:
@@ -172,8 +174,10 @@ def #{name}=(attachable)
172
174
# The system has been designed to having you go through the ActiveStorage::Attached::Many
173
175
# proxy that provides the dynamic proxy to the associations and factory methods, like +#attach+.
174
176
#
175
- # If the +:dependent+ option isn't set, all the attachments will be purged
176
- # (i.e. destroyed) whenever the record is destroyed.
177
+ # The +:dependent+ option defaults to +:purge_later+. This means the attachments will be
178
+ # purged (i.e. destroyed) in the background whenever the record is destroyed.
179
+ # If an ActiveJob::Backend queue adapter is not set in the application set it to
180
+ # +purge+ instead.
177
181
#
178
182
# If you need the attachment to use a service which differs from the globally configured one,
179
183
# pass the +:service+ option. For example:
0 commit comments