We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 73ac02f + a316490 commit a2fd16bCopy full SHA for a2fd16b
1 file changed
lib/rails_admin/adapters/active_record.rb
@@ -75,7 +75,7 @@ def encoding
75
when 'postgresql'
76
::ActiveRecord::Base.connection.select_one("SELECT ''::text AS str;").values.first.encoding
77
when 'mysql2'
78
- ::ActiveRecord::Base.connection.instance_variable_get(:@connection).encoding
+ ::ActiveRecord::Base.connection.raw_connection.encoding
79
when 'oracle_enhanced'
80
::ActiveRecord::Base.connection.select_one("SELECT dummy FROM DUAL").values.first.encoding
81
else
0 commit comments