effective_resources 1.8.26 → 1.8.27

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
  SHA256:
3
- metadata.gz: 594bd0ccce4fd20ed2b9a47b8212f4db0d092f6aaa7852dfa0b54d6eb8dac303
4
- data.tar.gz: 066fa3be8c2cf7300517a7ca377496bed75516ec7e91dcc8e2b5bcd8a8185a8e
3
+ metadata.gz: 49b0e10cdea6482347d89604f85458147fe74f06ecbf0085a3ed9b8a2b68ecdd
4
+ data.tar.gz: dcfc9bd5423907bf6a5cd9b4a1a1ac191ea49bd774033a51d209064de38db017
5
5
  SHA512:
6
- metadata.gz: 9b92e61316487db82714da4ffffb7c7bc85f7de4027ba9ababf9b2f42df9d70391b4cbfb4884dd8dfb86f7a5a567ff24d815af2a73f7bc9b1a58ae3b296f1e4e
7
- data.tar.gz: dfdcafafd72ffff2c629b47b61ac7d4e80c588962dcebc3c0d74dadc3131c9e121690bb73afcb60ae2fd309f2ba790faa44c832713a33505c428f87fa4c31398
6
+ metadata.gz: b5795d6c0d9565e2df3777b51ca4a074cbb1aa9eeef0f68f7a16914319dcf4860456c576548be7496af848272d3f4c579fe03057a5c126db2b89f0a621670f03
7
+ data.tar.gz: fb53b1dc820211022a2ba9c4730613c94ae40aa5c7dfdcdf216e5a92930001a7ae032fc77ae3b81e39f718f995f8cdadc72f7a4a31b9da380ceaa2aaf64a42b6
@@ -7,7 +7,7 @@ module Effective
7
7
  BLACKLIST = [:logged_changes, :trash]
8
8
 
9
9
  def instance
10
- @instance || klass.new
10
+ @instance || (klass.new if klass)
11
11
  end
12
12
 
13
13
  # called by effective_trash and effective_logging
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '1.8.26'.freeze
2
+ VERSION = '1.8.27'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.26
4
+ version: 1.8.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-03 00:00:00.000000000 Z
11
+ date: 2021-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails