Skip to content

Commit

Permalink
Updating for keyword arguments as per Ruby 3
Browse files Browse the repository at this point in the history
  • Loading branch information
satishaher committed Dec 8, 2022
1 parent c74949a commit d8f7c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_record/connection_adapters/odbc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def initialize_type_map(map)

# Translate an exception from the native DBMS to something usable by
# ActiveRecord.
def translate_exception(exception, message)
def translate_exception(exception, **message)
error_number = exception.message[/^\d+/].to_i

if error_number == ERR_DUPLICATE_KEY_VALUE
Expand Down

0 comments on commit d8f7c95

Please sign in to comment.