mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user