effective_logging 1.10.0 → 1.10.1

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: 3e724ec2b890ab6af1c5f9a6e5fa573231cf64b8
4
- data.tar.gz: dad4e05c79b2eeca0be0434e5aa4987dbb7e6ec0
3
+ metadata.gz: 7a0761fe17b1a89eae022643b9a8fd78eb8c97ec
4
+ data.tar.gz: f7fd1e4ab6e62489250fd391e3e391ea055741f1
5
5
  SHA512:
6
- metadata.gz: d0227e4b2c520bafc19e5a27a71b7f51964d30302f48a99f1902d51dd87dd6d97d172468fc8938c568c28e00f5a563108e2a42d71a83c03f13e11e7124cba3fc
7
- data.tar.gz: e0ba574c10badde2f13e6533ca8d2838c2d2da107abf2d7e05b4da69dce67dea11bf38003ab2d130828bf67b2a588c3d48d787720dc997d7701d2275d53a6d9f
6
+ metadata.gz: e22222aa91554582ceb840aef218db9ad9cb4df111f1b7a2dfc5092446f4a6d8833bbe235e964618b7c6afa6ab28f434eecc8186d57a234c503fb4fcb66b6444
7
+ data.tar.gz: 64d75979741116fd9a36f89eb4f3211738684a2a4c37d8ef6d4cbde89db3dec875beaa367cd0e606b50cd94a9d94e2886d9c321d56902c1aa8ca9b27787e3dbf
@@ -13,8 +13,13 @@ module Effective
13
13
 
14
14
  # The user this log item is referring to
15
15
  # An associated object, if we wanna add anything extra
16
- belongs_to :user, optional: true
17
- belongs_to :associated, polymorphic: true, optional: true
16
+ if Gem::Version.new(Rails.version) < Gem::Version.new('5.0')
17
+ belongs_to :user
18
+ belongs_to :associated, polymorphic: true
19
+ else
20
+ belongs_to :user, optional: true
21
+ belongs_to :associated, polymorphic: true, optional: true
22
+ end
18
23
 
19
24
  serialize :details, Hash
20
25
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveLogging
2
- VERSION = '1.10.0'.freeze
2
+ VERSION = '1.10.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.10.1
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: 2017-01-09 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails