Skip to content

Commit 555aa38

Browse files
authored
Merge pull request rails#41054 from bogdanvlviv/unify-active_storage-configs-in_load_defaults_6_1
Unite Active Storage configs in `load_defaults '6.1'` into one if-section
2 parents c97f1f1 + 5e0d451 commit 555aa38

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

railties/lib/rails/application/configuration.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,6 @@ def load_defaults(target_version)
163163
active_record.legacy_connection_handling = false
164164
end
165165

166-
if respond_to?(:active_storage)
167-
active_storage.track_variants = true
168-
end
169-
170166
if respond_to?(:active_job)
171167
active_job.retry_jitter = 0.15
172168
active_job.skip_after_callbacks_if_terminated = true
@@ -187,6 +183,8 @@ def load_defaults(target_version)
187183
end
188184

189185
if respond_to?(:active_storage)
186+
active_storage.track_variants = true
187+
190188
active_storage.queues.analysis = nil
191189
active_storage.queues.purge = nil
192190
end

0 commit comments

Comments
 (0)