mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Avoid creating local var.
This commit is contained in:
committed by
Aaron Patterson
parent
63c9185b62
commit
6ffe0ef55b
@@ -40,8 +40,7 @@ module ActiveRecord
|
||||
if @connection.respond_to?(:encoding)
|
||||
@connection.encoding.to_s
|
||||
else
|
||||
encoding = @connection.execute('PRAGMA encoding')
|
||||
encoding[0]['encoding']
|
||||
@connection.execute('PRAGMA encoding')[0]['encoding']
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user