sis_core 1.0.8 → 1.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6b30327db722ca3f16bad73c555e382920cacff0baec011f504b999840e9cc4
|
4
|
+
data.tar.gz: 9f92fb5a3268456261cf45e3cc870196705638c5b6fbc19c5effbc48157f3420
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c2f778c15f7791999026a1a6e5114be6ac25e072abda5ce91535cad9818c9dfa90096fefe14eb4e50a0f284a295496ec0e7a6ff25f25ed7e193fa8aa8c105d0
|
7
|
+
data.tar.gz: b67d563aa05be808f40ea3618945e45a99538000ad225510158b0203636dba471604c6d949c9d26f5f2f867f8a8fc4ccb8071c3b21db4cecbebec59e49f6d446
|
@@ -11,8 +11,8 @@ module Sis
|
|
11
11
|
user_menus.each do |user_menu|
|
12
12
|
children = user_menu.children.where(parent_id: user_menu.id, application_module_id: app_module_id)
|
13
13
|
children = children.map { |c| { label: c.text, icon: c.icon_cls, routerLink: [c.location] } }
|
14
|
-
menus.push({
|
15
|
-
items: children })
|
14
|
+
menus.push({ id: user_menu.id, label: user_menu.text, icon: user_menu.icon_cls,
|
15
|
+
location: user_menu.location, items: children, expanded: true })
|
16
16
|
end
|
17
17
|
end
|
18
18
|
render json: { success: true, data: menus }
|
data/app/models/sis/core/exam.rb
CHANGED
@@ -12,6 +12,10 @@ module Sis
|
|
12
12
|
end
|
13
13
|
|
14
14
|
delegate(:name, to: :exam_setup, prefix: true, allow_nil: false)
|
15
|
+
|
16
|
+
scope :by_application_setup, (lambda do |app_setup_id|
|
17
|
+
joins(:exam_setup).where('sis_core_exam_setups.application_setup_id': app_setup_id)
|
18
|
+
end)
|
15
19
|
end
|
16
20
|
end
|
17
21
|
end
|
data/lib/sis/core/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sis_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henock L.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aasm
|