From e6051b049839565575835bd77cdd8fed714eeb39 Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Sun, 9 Aug 2026 16:39:19 +0200 Subject: [PATCH] Remove deprecation warnings emitted by paperclip In the dockerfiles, both imagemagick and file are already in the PATH. The same is true in the nix flake devshell, so this configuration is unnecessary. --- config/environments/development.rb | 2 -- config/environments/production.rb | 2 -- config/environments/test.rb | 2 -- 3 files changed, 6 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index d82ddf6d..59371984 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -85,8 +85,6 @@ # Apply autocorrection by RuboCop to files generated by `bin/rails generate`. # config.generators.apply_rubocop_autocorrect_after_generate! - Paperclip.options[:command_path] = "/usr/local/bin/" - config.action_mailer.default_url_options = { host: 'localhost', port: 3000 } config.api_url = "http://localhost:3001/api/v1/" diff --git a/config/environments/production.rb b/config/environments/production.rb index 852060de..0ec2471f 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -103,8 +103,6 @@ # Skip DNS rebinding protection for the default health check endpoint. # config.host_authorization = { exclude: ->(request) { request.path == "/up" } } - Paperclip.options[:command_path] = "/usr/local/bin/" - # Help the asset pipeline for staging config.x.host = 'tab.zeus.gent' config.api_url = "https://tab.zeus.gent/api/v1/" diff --git a/config/environments/test.rb b/config/environments/test.rb index 89484783..90bd7baa 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -49,8 +49,6 @@ # Tell Active Support which deprecation messages to disallow. config.active_support.disallowed_deprecation_warnings = [] - Paperclip.options[:command_path] = "/usr/local/bin/" - config.action_mailer.default_url_options = { host: 'localhost', port: 3000 } config.api_url = "http://www.example.com"