Skip to content

Commit 4f96e35

Browse files
committed
fix plural name in flash msg
1 parent f1df813 commit 4f96e35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_admin_import/dsl.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def active_admin_import options = {}, &block
6262
instance_eval &block
6363
else
6464
model_name = options[:resource_label].downcase
65-
plural_model_name = options[:resource_label].downcase
65+
plural_model_name = options[:plural_resource_label].downcase
6666
if @importer.result[:imported].to_i > 0
6767
flash[:notice] = I18n.t('active_admin_import.imported', count: @importer.result[:imported].to_i, model: model_name, plural_model: plural_model_name)
6868
end

0 commit comments

Comments
 (0)