Skip to content

Commit 7262703

Browse files
authored
Merge pull request #6053 from nhsuk/activestorage-image-porcessing
Disable ActiveStorage variant processing
2 parents 33620e3 + 12a57eb commit 7262703

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

config/environments/development.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
# Store uploaded files on the local file system (see config/storage.yml for options).
3737
config.active_storage.service = :local
3838

39+
# Disable Active Storage's image processing, we don't use it and it complains on startup.
40+
config.active_storage.variant_processor = :disabled
41+
3942
# Don't care if the mailer can't send.
4043
config.action_mailer.raise_delivery_errors = false
4144

config/environments/production.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
# Store uploaded files on the local file system (see config/storage.yml for options).
3535
config.active_storage.service = :local
3636

37+
# Disable Active Storage's image processing, we don't use it and it complains on startup.
38+
config.active_storage.variant_processor = :disabled
39+
3740
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
3841
config.assume_ssl = true
3942

config/environments/test.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@
3535
# Store uploaded files on the local file system in a temporary directory.
3636
config.active_storage.service = :test
3737

38+
# Disable Active Storage's image processing, we don't use it and it complains on startup.
39+
config.active_storage.variant_processor = :disabled
40+
3841
# Print deprecation notices to the stderr.
3942
config.active_support.deprecation = :stderr
4043

0 commit comments

Comments
 (0)