diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-11-27 12:11:41 -0800 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-11-27 12:11:41 -0800 |
commit | af3aacaa47922e1c587ce626bd45fd9f452fe03f (patch) | |
tree | 8fc96a84ddd9460be15199214bac7b88b027b7cf /activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | |
parent | 0b7cd7b570349104fd7ec4a214987de2386ddea1 (diff) | |
parent | 1756629835d39f60ef4c96aff81ac503c71b98b7 (diff) | |
download | rails-af3aacaa47922e1c587ce626bd45fd9f452fe03f.tar.gz rails-af3aacaa47922e1c587ce626bd45fd9f452fe03f.tar.bz2 rails-af3aacaa47922e1c587ce626bd45fd9f452fe03f.zip |
Merge pull request #3773 from rahul100885/rahul100885_work
Use any instead of length
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 2f01fbb829..852debcdde 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -1239,7 +1239,7 @@ module ActiveRecord if match_data rest = name[match_data[0].length, name.length] rest = rest[1, rest.length] if rest.start_with? "." - [match_data[1], (rest.length > 0 ? rest : nil)] + [match_data[1], (rest.any? ? rest : nil)] end end |