adds method to paranoia for unconfirmed hides

This commit is contained in:
Juanjo Bazán
2015-09-06 21:04:21 +02:00
parent ca8c445404
commit 29ebff615c

View File

@@ -34,6 +34,10 @@ module ActsAsParanoidAliases
where("confirmed_hide_at IS NOT NULL")
end
def without_confirmed_hide
where("confirmed_hide_at IS NULL")
end
def with_hidden
with_deleted
end