diff --git a/app/controllers/sample_groups_controller.rb b/app/controllers/sample_groups_controller.rb index 104d793f9..f3319ba48 100644 --- a/app/controllers/sample_groups_controller.rb +++ b/app/controllers/sample_groups_controller.rb @@ -21,7 +21,7 @@ class SampleGroupsController < ApplicationController render json: { id: @sample_group.id, flash: t( - "sample_groups.create.success_flash", + 'sample_groups.create.success_flash', sample_group: @sample_group.name, organization: @organization.name ) diff --git a/app/controllers/sample_types_controller.rb b/app/controllers/sample_types_controller.rb index d4ee5a7e5..feea3ec98 100644 --- a/app/controllers/sample_types_controller.rb +++ b/app/controllers/sample_types_controller.rb @@ -26,7 +26,7 @@ class SampleTypesController < ApplicationController render json: { id: @sample_type.id, flash: t( - "sample_types.create.success_flash", + 'sample_types.create.success_flash', sample_type: @sample_type.name, organization: @organization.name )