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

Tom Hughes notifications at github.com
Wed Sep 14 20:02:23 UTC 2016

To be honest I'm pretty sure this would actually work anyway:

acts_as_paranoid :column => "visible", :column_type => :string, :deleted_value => false

Because all it actually does for a string column is build arels that match that column to the given value so the column doesn't really need to be a string.

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/2b0e35fe/attachment-0001.html>

More information about the rails-dev mailing list