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

This commit is contained in:
Aaron Patterson 2011-12-07 15:01:04 -08:00
parent 30f0d7bac8
commit 8523784265

@ -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