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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7febb48c23b7e284e0dfe09367734ff47a712577
4
- data.tar.gz: 787df5400cfdbdd7306e73125521e3c10af30aca
3
+ metadata.gz: fe6592ed1a35b5a853b2ddb9a57df2a4e14b5a96
4
+ data.tar.gz: a4e1a56146b2e21dbe52036f006dc0e53596b211
5
5
  SHA512:
6
- metadata.gz: 64aca7ab8a14d6bdb4479ac934e2f35e631715880a9a257ce722eb1398b9e03e3f74e16b8998736a3d1f714c9fe57b6b9eb18abc420f2eb598a0d87fb70b217e
7
- data.tar.gz: 99642de01acec8e084b82d5967d06e677f11e1cf9dc10e816336d0568b39c5336212391fac550cd600d188833651c2a5e3b1e78b799e8d5112faa6d9d31af683
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)
@@ -1,3 +1,3 @@
1
1
  module DeletedAt
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
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.5
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-03-28 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord