Skip to content

Commit

Permalink
the required sqlite3 adapter responds to encoding, so stop checking.
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Dec 7, 2011
1 parent 30f0d7b commit 8523784
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit 8523784

Please sign in to comment.