Browse files

the required sqlite3 adapter responds to encoding, so stop checking.

  • Loading branch information...
1 parent 30f0d7b commit 85237842657132e8fe34bd460d3db2adee077d37 @tenderlove tenderlove committed Dec 7, 2011
Showing with 1 addition and 5 deletions.
  1. +1 −5 activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
View
6 activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
@@ -47,11 +47,7 @@ def quote(value, column = nil)
# Returns the current database encoding format as a string, eg: 'UTF-8'
def encoding
- if @connection.respond_to?(:encoding)
- @connection.encoding.to_s
- else
- @connection.execute('PRAGMA encoding')[0]['encoding']
- end
+ @connection.encoding.to_s
end
end

0 comments on commit 8523784

Please sign in to comment.