mumuki-domain 7.2.2 → 7.2.3

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: 1e4000eb54a24a50ced9f8b58ce44db2c4bd93a12737f5e678abaa8bd631d82c
4
- data.tar.gz: e0f5c3d5752a2aaa0764f9f8dbe53a774f474ac7b3baf047680e41d75f5adaf2
3
+ metadata.gz: 3179a03e24e7413a00039d28cd61b6beb9f63c0b02bb1534f735e4810c0aa772
4
+ data.tar.gz: 8d7e6562888f89ddf82fe13cfeddfe50b84f76273e27a4b4563918bbdad04e5f
5
5
  SHA512:
6
- metadata.gz: 4de888c6f4bcd0670b807acb4c3935c0a335a1b101454e2ce17ada86ff8645cc9a48d4724404e2c4f3d1849aaba3f03dcbc75a0e725d3f628ee191ce3555ca89
7
- data.tar.gz: 3b0795f583e057f1c6bfc2586bf11cde38ce7ae2751b03ec4c0a93790e49cd34446f1985312bab89bc36bad04ad09eef85326ed93236f2323b84e3083cbe2f8b
6
+ metadata.gz: 195d207a93df212d4dd957a637cf29c43760914d7f2a17c40cb0c0e39d0ebdabb4888793372bed015982bbe05df098ef076d9dddf1f9e8486af660c4e6f78b72
7
+ data.tar.gz: c08e3152758229a33e4d48b54b88d989becf39751c7b6954dfbbd1d01b3d4176aa81f688e839b34604042602a648b77db71e1f2f08d4923236b36585ff5a62b8
@@ -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.2.2'
3
+ VERSION = '7.2.3'
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.2.2
4
+ version: 7.2.3
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-19 00:00:00.000000000 Z
11
+ date: 2020-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails