[openstreetmap/openstreetmap-website] Refactoring visible = true / acts_as_paranoid (#1287)

Tom Hughes notifications at github.com
Wed Sep 14 20:37:04 UTC 2016

I can confirm that does work. The user model is a bit more tricky because we have two values for `status` that count as deleted. This almost works:

acts_as_paranoid :column => "status", :column_type => "string", :deleted_value => %w(suspended deleted)

The `only_deleted` scope works, but the default `all` scope doesn't without a small patch to the gem. Obviously trying to actually use the `delete` method wouldn't work either.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160914/c62bd6d3/attachment.html>

More information about the rails-dev mailing list