Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid creating local var.

  • Loading branch information...
commit 6ffe0ef55bbabf59a533402a6420942c7397e441 1 parent 63c9185
@miloops miloops authored tenderlove committed
View
3  activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
@@ -40,8 +40,7 @@ def encoding
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
Please sign in to comment.
Something went wrong with that request. Please try again.