glebtv_mongoid_userstamp 0.7.1 → 0.7.2

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: 2ed4f16c794395439792d644ea0c5509e837eb73
4
- data.tar.gz: b57f17bf1cc738af95cb1fdbdd3d9b33c3b08a08
3
+ metadata.gz: 9a8d5f998b10e5be57809bd3f97b189ed00c2b22
4
+ data.tar.gz: 8ff541f4dbab4df3cb24384871d286006e8a2c0c
5
5
  SHA512:
6
- metadata.gz: 2a58e90c46d12b1eeb2375db1b74d9225111f7622b3b550fb518c9cfe7e304fb2997634549e1a7717576094bd408b61f71108f0f3490d077927f728167ba8a8f
7
- data.tar.gz: 23e87fb7a30e7db73a28785e5b57538a0fdb9ab51f371b2c3463eba50f620aa37827841857a6bee2976346d60f3704ae9feb4a469aa5fd2bda6d5f3eb1818c65
6
+ metadata.gz: a829c6e1d98285f3221305f1bc4aa53b6dd40c39337697f21f2f1fa249aab2dab33098bcff79baa4d64ce435a1b00bb0433a19456f6f76a2a917f9da866452cb
7
+ data.tar.gz: 28f353a34248ea22cf425ef858a43e692332e7aa7b2579079b783ad12313aed033fadfd1e682807d8611a6265583f448ae5086e153f482064d2f7b85ebaa76d8
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Userstamp
3
- VERSION = '0.7.1'
3
+ VERSION = '0.7.2'
4
4
  end
5
5
  end
@@ -3,8 +3,8 @@ module Mongoid
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- belongs_to Userstamp.config.creator_field, class_name: Userstamp.config.user_model_name, autosave: false, required: false
7
- belongs_to Userstamp.config.updater_field, class_name: Userstamp.config.user_model_name, autosave: false, required: false
6
+ belongs_to Userstamp.config.creator_field, class_name: Userstamp.config.user_model_name, autosave: false, optional: true
7
+ belongs_to Userstamp.config.updater_field, class_name: Userstamp.config.user_model_name, autosave: false, optional: true
8
8
 
9
9
  before_validation :set_updater
10
10
  before_validation :set_creator
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glebtv_mongoid_userstamp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GlebTv
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-02-03 00:00:00.000000000 Z
13
+ date: 2017-03-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mongoid