From 29ebff615c76972d961f891c9b17defd296913c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Sun, 6 Sep 2015 21:04:21 +0200 Subject: [PATCH] adds method to paranoia for unconfirmed hides --- lib/acts_as_paranoid_aliases.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/acts_as_paranoid_aliases.rb b/lib/acts_as_paranoid_aliases.rb index 1d7dbf6d9..e8abab530 100644 --- a/lib/acts_as_paranoid_aliases.rb +++ b/lib/acts_as_paranoid_aliases.rb @@ -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