diff options
author | tsukasaoishi <tsukasa.oishi@gmail.com> | 2014-08-08 01:03:09 +0900 |
---|---|---|
committer | tsukasaoishi <tsukasa.oishi@gmail.com> | 2014-08-08 01:03:09 +0900 |
commit | 4e83815ce991efce2b84aa570f6673227ff0bb0d (patch) | |
tree | 43c01d40a381feb2d7260626e4b8ac1786d91f83 /activerecord/lib | |
parent | 8aead812baaacb962c15d0ab27bdaf4c388b7d59 (diff) | |
download | rails-4e83815ce991efce2b84aa570f6673227ff0bb0d.tar.gz rails-4e83815ce991efce2b84aa570f6673227ff0bb0d.tar.bz2 rails-4e83815ce991efce2b84aa570f6673227ff0bb0d.zip |
change to empty? from blank?
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/schema_cache.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/schema_cache.rb b/activerecord/lib/active_record/connection_adapters/schema_cache.rb index 726810535d..a10ce330c7 100644 --- a/activerecord/lib/active_record/connection_adapters/schema_cache.rb +++ b/activerecord/lib/active_record/connection_adapters/schema_cache.rb @@ -19,7 +19,7 @@ module ActiveRecord # A cached lookup for table existence. def table_exists?(name) - prepare_tables if @tables.blank? + prepare_tables if @tables.empty? return @tables[name] if @tables.key? name @tables[name] = connection.table_exists?(name) |