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 +4 -4
- data/lib/mongoid/userstamp/version.rb +1 -1
- data/lib/mongoid/userstamp.rb +2 -2
- 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: 9a8d5f998b10e5be57809bd3f97b189ed00c2b22
|
4
|
+
data.tar.gz: 8ff541f4dbab4df3cb24384871d286006e8a2c0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a829c6e1d98285f3221305f1bc4aa53b6dd40c39337697f21f2f1fa249aab2dab33098bcff79baa4d64ce435a1b00bb0433a19456f6f76a2a917f9da866452cb
|
7
|
+
data.tar.gz: 28f353a34248ea22cf425ef858a43e692332e7aa7b2579079b783ad12313aed033fadfd1e682807d8611a6265583f448ae5086e153f482064d2f7b85ebaa76d8
|
data/lib/mongoid/userstamp.rb
CHANGED
@@ -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,
|
7
|
-
belongs_to Userstamp.config.updater_field, class_name: Userstamp.config.user_model_name, autosave: 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.
|
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-
|
13
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mongoid
|