diff options
author | Xavier Noria <fxn@hashref.com> | 2016-08-07 23:41:00 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2016-08-07 23:41:00 +0200 |
commit | b45c9ca9b6571108242c1dfc3d3e160f56baf025 (patch) | |
tree | 831cdef7e70fd26f001aa108daf2365a5fdc8b87 /activerecord/lib/active_record/associations/collection_association.rb | |
parent | f90ee8ce2733326e9e1bf91426bb401017adb483 (diff) | |
download | rails-b45c9ca9b6571108242c1dfc3d3e160f56baf025.tar.gz rails-b45c9ca9b6571108242c1dfc3d3e160f56baf025.tar.bz2 rails-b45c9ca9b6571108242c1dfc3d3e160f56baf025.zip |
revises most Lint/EndAlignment offenses
Some case expressions remain, need to think about those ones.
Diffstat (limited to 'activerecord/lib/active_record/associations/collection_association.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_association.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/associations/collection_association.rb b/activerecord/lib/active_record/associations/collection_association.rb index 6e5877f6f5..ab267f6897 100644 --- a/activerecord/lib/active_record/associations/collection_association.rb +++ b/activerecord/lib/active_record/associations/collection_association.rb @@ -221,11 +221,11 @@ module ActiveRecord dependent = if dependent dependent - elsif options[:dependent] == :destroy - :delete_all - else - options[:dependent] - end + elsif options[:dependent] == :destroy + :delete_all + else + options[:dependent] + end delete_or_nullify_all_records(dependent).tap do reset |