```ruby
module ActiveAdminImportable
  module DSL
    def active_admin_importable(&block)
      action_item :only => :index do
        link_to "Import #{active_admin_config.resource_name.to_s.pluralize}", :action => 'upload_csv'
      end

      collection_action :upload_csv do
        render "admin/csv/upload_csv"
      end

      collection_action :import_csv, :method => :post do
        role = resources_configuration[:self][:role] || :default
        CsvDb.convert_save(active_admin_config.resource_class, params[:dump][:file], role, &block)
        redirect_to :action => :index, :notice => "#{active_admin_config.resource_name.to_s} imported successfully!"
      end
    end
  end
end```

Fix success flash notice on redirecting.
user
```ruby
module ActiveAdminImportable
  module DSL
    def active_admin_importable(&block)
      action_item :only => :index do
        link_to "Import #{active_admin_config.resource_name.to_s.pluralize}", :action => 'upload_csv'
      end

      collection_action :upload_csv do
        render "admin/csv/upload_csv"
      end

      collection_action :import_csv, :method => :post do
        role = resources_configuration[:self][:role] || :default
        CsvDb.convert_save(active_admin_config.resource_class, params[:dump][:file], role, &block)
        flash[:notice] = "#{active_admin_config.resource_name.to_s} imported successfully!"
        redirect_to :action => :index
      end
    end
  end
end```
assistant