deleted_at 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/deleted_at/active_record/base.rb +2 -0
- data/lib/deleted_at/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe6592ed1a35b5a853b2ddb9a57df2a4e14b5a96
|
4
|
+
data.tar.gz: a4e1a56146b2e21dbe52036f006dc0e53596b211
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6599819c33f9c713d1404e849f6857d2fd9121b99548628f2b3ee37ab23bb3254910a008be0def4545fc6e581290c742a91db7ddb6ad729f43331aa49edcd907
|
7
|
+
data.tar.gz: 647f7183db0662021628ab5f5e2391ac9b386ee1edebdba20dde21b49000271c5ecce05277583f1f323a89eee1bf1c58d61cd87cdacdd0c6fa05239a464c2bf8
|
@@ -42,6 +42,8 @@ module DeletedAt
|
|
42
42
|
|
43
43
|
def with_deleted_at(options={})
|
44
44
|
|
45
|
+
return warn("No DB connection found; skipping deleted_at initialization") unless ::ActiveRecord::Base.connected?
|
46
|
+
|
45
47
|
parse_options(options)
|
46
48
|
|
47
49
|
unless ::DeletedAt::Views.all_table_exists?(self) && ::DeletedAt::Views.deleted_view_exists?(self)
|
data/lib/deleted_at/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deleted_at
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Stevens
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|