cloudelete 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Cloudelete
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/cloudelete.rb CHANGED
@@ -8,11 +8,16 @@ module Cloudelete
8
8
  module ClassMethods
9
9
  def is_soft_deleted
10
10
  default_scope where(deleted_at: nil)
11
- scope :deleted, where('deleted_at IS NOT NULL')
12
- scope :including_deleted, unscoped
13
-
14
11
  send :include, InstanceMethods
15
12
  end
13
+
14
+ def deleted
15
+ unscoped.where('deleted_at IS NOT NULL')
16
+ end
17
+
18
+ def with_deleted
19
+ unscoped
20
+ end
16
21
  end
17
22
 
18
23
  module InstanceMethods
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Eli Fox-Epstein