diff options
author | Nat Welch <nat@natwelch.com> | 2011-08-22 00:35:53 -0700 |
---|---|---|
committer | Nat Welch <nat@natwelch.com> | 2011-08-22 00:35:53 -0700 |
commit | f69036781c0ee7a22a456fe3a6689277d44ed9a6 (patch) | |
tree | 2cb1b43e1176755207d1e2cb1c79179242976e7c /activerecord | |
parent | 0c893443e0720bb1316599d990c0e1013eaac8ab (diff) | |
download | rails-f69036781c0ee7a22a456fe3a6689277d44ed9a6.tar.gz rails-f69036781c0ee7a22a456fe3a6689277d44ed9a6.tar.bz2 rails-f69036781c0ee7a22a456fe3a6689277d44ed9a6.zip |
From @dasch's recommendation.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/schema_dumper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/schema_dumper.rb b/activerecord/lib/active_record/schema_dumper.rb index 6eadba6238..a3e9c5ebba 100644 --- a/activerecord/lib/active_record/schema_dumper.rb +++ b/activerecord/lib/active_record/schema_dumper.rb @@ -40,7 +40,7 @@ module ActiveRecord def header(stream) define_params = @version ? ":version => #{@version}" : "" - if !stream.external_encoding.nil? + if stream.respond_to?(:external_encoding) && !stream.external_encoding.nil? stream.puts "# encoding: #{stream.external_encoding.name}" end |