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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fab8e17e1999a7078b0cc8109e14ce95160cc7b09e6a928ae1dc3eaa29b92b3c
4
- data.tar.gz: f59dcff524b52100f39f06fb4816a5505d4f995da3d11a5ec7eaf1cbec671240
3
+ metadata.gz: 427357d23facceb8e41d0f3a934f5c03e5ee095ef03dbb50af96338d158030d7
4
+ data.tar.gz: 9e4fd1602971d3e83ca97a56adcecb8507f11d96a4ec9d882b7cfee4552dce9c
5
5
  SHA512:
6
- metadata.gz: 0abdd4683517e005567bef53c84608a99d5ac377316284072454dac0758a239478cbf3b29e6937de8f42930571dc2be4f6e9e35731479a82db63814a0cd8d387
7
- data.tar.gz: 1b67591020869739dccedbf0045e98be9d4bf5934c40ad0846e05b020795b244100afac75ec3c35ac1a9c0e157f1db265895e31304f7a5d2467096cae4243a8f
6
+ metadata.gz: e7c2c976a4ae3d4be45e8c06764e0c39518bd5fb09478cb63f3af7710b88d405bf53f13b9e9d57aad0a2e1105a97a7414e0c6a4fe89543b433eedc1f10d529d8
7
+ data.tar.gz: 02e47399510cca76f79dc992e8894f12b9bedf2b1eb7f5b9f0f1413bbc824b44d8e276a953eb3bd3b59bd562dd486337e64d3468d81d91ddb681118506169aaa
@@ -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
- before_save :set_current_organization, unless: :organization
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
 
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Domain
3
- VERSION = '7.3.0'
3
+ VERSION = '7.3.1'
4
4
  end
5
5
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2020-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails