Permalink
Browse files

Not checking for nil is apparently a lot faster.

  • Loading branch information...
1 parent 667d218 commit a58fcd94a077b22204f08385e906bebc31dcb948 @icco icco committed Sep 22, 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) && !stream.external_encoding.nil?
+ if stream.respond_to?(:external_encoding) && stream.external_encoding
stream.puts "# encoding: #{stream.external_encoding.name}"
end

0 comments on commit a58fcd9

Please sign in to comment.