diff --git a/lib/active_storage/engine.rb b/lib/active_storage/engine.rb index 95ed021ce0..71861b84ae 100644 --- a/lib/active_storage/engine.rb +++ b/lib/active_storage/engine.rb @@ -24,7 +24,7 @@ module ActiveStorage initializer "active_storage.verifier" do config.after_initialize do |app| - ActiveStorage.verifier = Rails.application.message_verifier("ActiveStorage") + ActiveStorage.verifier = app.message_verifier("ActiveStorage") end end