From 43401e4b5ee4fc8a47c0077ae390a1f5ee90dea8 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Thu, 3 Jun 2021 22:45:11 +0100 Subject: [PATCH] Fix double spree scope in i18n Fix taken from spree: https://github.com/spree/spree/commit/efba9f1a0281be1c86c61d49864225eaf5973375 --- lib/spree/i18n.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spree/i18n.rb b/lib/spree/i18n.rb index a1ab621b0d..d40dab6147 100644 --- a/lib/spree/i18n.rb +++ b/lib/spree/i18n.rb @@ -15,7 +15,7 @@ module Spree @virtual_path = virtual_path options = args.extract_options! - options[:scope] = [*options[:scope]].unshift(:spree) + options[:scope] = [*options[:scope]].unshift(:spree).uniq args << options super(*args) end