Are you sure you want to `return` here?  I think you should just do...
```
if options[:polymorphic] && klass && options[:with_deleted] && klass.soft_deletable?
  klass.with_deleted
else
  super
end
```