mumuki-domain 7.3.0 → 7.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/assignment.rb +2 -2
- data/lib/mumuki/domain/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 427357d23facceb8e41d0f3a934f5c03e5ee095ef03dbb50af96338d158030d7
|
4
|
+
data.tar.gz: 9e4fd1602971d3e83ca97a56adcecb8507f11d96a4ec9d882b7cfee4552dce9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7c2c976a4ae3d4be45e8c06764e0c39518bd5fb09478cb63f3af7710b88d405bf53f13b9e9d57aad0a2e1105a97a7414e0c6a4fe89543b433eedc1f10d529d8
|
7
|
+
data.tar.gz: 02e47399510cca76f79dc992e8894f12b9bedf2b1eb7f5b9f0f1413bbc824b44d8e276a953eb3bd3b59bd562dd486337e64d3468d81d91ddb681118506169aaa
|
data/app/models/assignment.rb
CHANGED
@@ -40,10 +40,10 @@ class Assignment < Progress
|
|
40
40
|
alias_method :user, :submitter
|
41
41
|
|
42
42
|
after_save :dirty_parent_by_submission!, if: :completion_changed?
|
43
|
-
|
43
|
+
before_validation :set_current_organization!, unless: :organization
|
44
44
|
|
45
45
|
# TODO: Momentary as some assignments may not have an associated organization
|
46
|
-
def set_current_organization
|
46
|
+
def set_current_organization!
|
47
47
|
self.organization = Organization.current
|
48
48
|
end
|
49
49
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-domain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.3.
|
4
|
+
version: 7.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|