diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-06-12 10:31:21 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2011-06-12 10:31:21 -0500 |
commit | 657ba2a9f089d68171bb1820d4aa278f7ed022ca (patch) | |
tree | 78e3c453c68e92473d2e33ab4c79c8af57e9ae0c /activerecord/lib/active_record | |
parent | 00b4756790b04272da3e1ce821a35cc5a9ab1c77 (diff) | |
download | rails-657ba2a9f089d68171bb1820d4aa278f7ed022ca.tar.gz rails-657ba2a9f089d68171bb1820d4aa278f7ed022ca.tar.bz2 rails-657ba2a9f089d68171bb1820d4aa278f7ed022ca.zip |
Remove trailing whitespaces
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 3e390ba994..1a24ed1375 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -806,7 +806,7 @@ module ActiveRecord if pk && sequence quoted_sequence = quote_table_name(sequence) - + select_value <<-end_sql, 'Reset sequence' SELECT setval('#{quoted_sequence}', (SELECT COALESCE(MAX(#{quote_column_name pk})+(SELECT increment_by FROM #{quoted_sequence}), (SELECT min_value FROM #{quoted_sequence})) FROM #{quote_table_name(table)}), false) end_sql @@ -835,7 +835,7 @@ module ActiveRecord else sequence = result.second+'.'+result.last end - + [result.first, sequence] rescue nil |