organizze_permanent_records 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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: