glebtv_mongoid_userstamp 0.9.0 → 0.9.1
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.rb +2 -2
- data/lib/mongoid/userstamp/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec66d169aaec0ddf4865952f5ec28f7f0e2f22b325bbf7941abd9bc21d02e99d
|
4
|
+
data.tar.gz: 7c164ab473f37429865ff71cf57c252202cc5ee678588dd4d5c948d89d966872
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fe43db88f70dbb4ea18ea54d5abb3e61e0aaacf4f811b663fe2519cb20ca342e8f55c5da9011f7dd3c3ea4a888b555f79bd6164ceb07c58c8b245087cf9ee1b
|
7
|
+
data.tar.gz: 11178e22482adea865b35d509e3570ca99fc921e418005059ca28e077243191a38641412327195baec360cf0ef623de4b8fc0f646b8d7fb95530b8453078d455
|
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, required: false
|
7
|
+
belongs_to Userstamp.config.updater_field, class_name: Userstamp.config.user_model_name, autosave: false, required: false
|
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.9.
|
4
|
+
version: 0.9.1
|
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:
|
13
|
+
date: 2019-05-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mongoid
|
@@ -119,8 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
|
123
|
-
rubygems_version: 2.7.7
|
122
|
+
rubygems_version: 3.0.3
|
124
123
|
signing_key:
|
125
124
|
specification_version: 4
|
126
125
|
summary: Userstamp for Mongoid
|