Use Spree.t directly for translating the not_found message

Since none of the current keys interpolate a `%{resource}` parameter.
This commit is contained in:
David Rodríguez
2025-11-25 11:40:13 +01:00
parent 4792040240
commit 7bf54088a6

View File

@@ -76,7 +76,7 @@ module Admin
protected
def resource_not_found
flash[:error] = flash_message_for(model_class.new, :not_found)
flash[:error] = Spree.t(:not_found)
redirect_to collection_url
end