Permalink
Browse files

Remove trailing whitespaces

  • Loading branch information...
1 parent 00b4756 commit 657ba2a9f089d68171bb1820d4aa278f7ed022ca @guilleiguaran guilleiguaran committed Jun 12, 2011
@@ -19,7 +19,7 @@ def debug_protected_attribute_removal(attributes, sanitized_attributes)
removed_keys = attributes.keys - sanitized_attributes.keys
process_removed_attributes(removed_keys) if removed_keys.any?
end
-
+
def process_removed_attributes(attrs)
raise NotImplementedError, "#process_removed_attributes(attrs) suppose to be overwritten"
end
@@ -806,7 +806,7 @@ def reset_pk_sequence!(table, pk = nil, sequence = nil) #:nodoc:
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 @@ def pk_and_sequence_for(table) #:nodoc:
else
sequence = result.second+'.'+result.last
end
-
+
[result.first, sequence]
rescue
nil

0 comments on commit 657ba2a

Please sign in to comment.