mumuki-domain 7.3.1 → 7.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/user.rb +1 -7
- 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: 39020a28808b40cdfdfcbbacb3f5548a56ba6886ae4ffec37e46501a9e211ae9
|
4
|
+
data.tar.gz: 80eebf536803172e019da3af5e4e480e4613716db2dff9cb2bd51a09dee20340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b92101a2f8af04af9f29722c8581f645533da33146deb68b16af0013babfa86786f6210929ea4d42857cfdb1be871fd8671b76b210321a7c78110a02fbee750
|
7
|
+
data.tar.gz: dcd486ae7a1cbe1500d2ad16b06856ee3ef5ee114ec5d54280754c1ad49c627eba0290f1af0b59d7a11a21e1df9313cdf5f948bef1849b180074c363399519a0
|
data/app/models/user.rb
CHANGED
@@ -89,7 +89,7 @@ class User < ApplicationRecord
|
|
89
89
|
make_student_of! invitation.course_slug
|
90
90
|
end
|
91
91
|
|
92
|
-
def
|
92
|
+
def transfer_progress_to!(another)
|
93
93
|
transaction do
|
94
94
|
assignments.update_all(submitter_id: another.id)
|
95
95
|
if another.never_submitted? || last_submission_date.try { |it| it > another.last_submission_date }
|
@@ -134,12 +134,6 @@ class User < ApplicationRecord
|
|
134
134
|
}
|
135
135
|
end
|
136
136
|
|
137
|
-
def resubmit!(organization = nil)
|
138
|
-
organization = Organization.find_by_name(organization) || main_organization
|
139
|
-
organization.switch!
|
140
|
-
assignments.each { |it| it.notify! rescue nil }
|
141
|
-
end
|
142
|
-
|
143
137
|
def currently_in_exam?
|
144
138
|
exams.any? { |e| e.in_progress_for? self }
|
145
139
|
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.
|
4
|
+
version: 7.3.2
|
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-
|
11
|
+
date: 2020-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|