This conditional is weird. Should not it be:

```ruby
if (loaded? && dependent != :delete_all) || dependent == :destroy
```