We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405a16e commit 5d7ae27Copy full SHA for 5d7ae27
lib/active_admin_import/import_result.rb
@@ -28,8 +28,8 @@ def empty?
28
total == 0
29
end
30
31
- def failed_message(limit: nil)
32
- limit ||= failed.count
+ def failed_message(options = {})
+ limit = options.fetch(:limit, failed.count)
33
failed.first(limit).map{|record|
34
errors = record.errors
35
(errors.full_messages.zip errors.keys.map{|k| record.send k}).map{|ms| ms.join(' - ')}.join(', ')
0 commit comments