Permalink
Browse files

Fixes bug with schema dumper when using with Padrino.

  • Loading branch information...
1 parent 63d3809 commit 0c893443e0720bb1316599d990c0e1013eaac8ab @icco icco committed Aug 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/schema_dumper.rb
@@ -40,7 +40,7 @@ def initialize(connection)
def header(stream)
define_params = @version ? ":version => #{@version}" : ""
- if stream.respond_to?(:external_encoding)
+ if !stream.external_encoding.nil?
stream.puts "# encoding: #{stream.external_encoding.name}"
end

0 comments on commit 0c89344

Please sign in to comment.