Make work with Rails 4

As promised, the soft-delete code is a lot simpler in Rails 4.

@dasch, @libo Should we care about Rails 3 compatibility?