glebtv_mongoid_userstamp 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/mongoid/userstamp/version.rb +1 -1
- data/lib/mongoid/userstamp.rb +2 -2
- data/spec/spec_helper.rb +2 -0
- 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: 152b2da236735387721cf285ba0bf01b813d9842
|
4
|
+
data.tar.gz: 2b25b8ab652845e9293e837a0badddfde0f396d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c80e3399091d3a3171dde1fabd383aa71fdce2bb011c027b519523b69caa98f11b73d418998400ec559ee16a6af8b114d97ad121bf6b70c2622701d9fb3c1fb3
|
7
|
+
data.tar.gz: 34829fda2ac7bebb7437172bb0f71dbace6293e232047d5fd93d826261c391de2050c29a3cbb0e3c519b34300d5f6511d208f2924b506c4d2dc60d2a6573931b
|
data/Gemfile
CHANGED
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
|
7
|
-
belongs_to Userstamp.config.updater_field, class_name: Userstamp.config.user_model_name
|
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
|
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.7.0
|
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: 2016-
|
13
|
+
date: 2016-09-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: mongoid
|