Skip to content

Commit 5d7ae27

Browse files
committed
Remove keyword argument to make Ruby 1.9 compatible
1 parent 405a16e commit 5d7ae27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/active_admin_import/import_result.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def empty?
2828
total == 0
2929
end
3030

31-
def failed_message(limit: nil)
32-
limit ||= failed.count
31+
def failed_message(options = {})
32+
limit = options.fetch(:limit, failed.count)
3333
failed.first(limit).map{|record|
3434
errors = record.errors
3535
(errors.full_messages.zip errors.keys.map{|k| record.send k}).map{|ms| ms.join(' - ')}.join(', ')

0 commit comments

Comments
 (0)