organizze_permanent_records 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,8 +38,12 @@ module OrganizzePermanentRecords
38
38
  where("#{table_name}.deleted_at IS NULL")
39
39
  end
40
40
 
41
- def with_deleted
42
- unscoped
41
+ def with_deleted(*args)
42
+ if args.present?
43
+ unscoped.find(args)
44
+ else
45
+ unscoped
46
+ end
43
47
  end
44
48
  end
45
49
 
@@ -1,3 +1,3 @@
1
1
  module OrganizzePermanentRecords
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: organizze_permanent_records
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: