mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove trailing whitespaces
This commit is contained in:
parent
00b4756790
commit
657ba2a9f0
2 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ module ActiveModel
|
|||
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 @@ 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
|
||||
|
|
Loading…
Reference in a new issue