mks_auth 1.0.11 → 1.0.12

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: 227d86604956d17a721112c90dad92ee76a7bcffbed19e27a37b3c719d574f71
4
- data.tar.gz: 9ed99b708d3353045f38dc58c5326195cec7d055139ddb2abfef5745e626b59c
3
+ metadata.gz: 7e06a3d773f4bbeabc803bdbe4837ef83408e017cfba099920c86b6381cb1f8c
4
+ data.tar.gz: 9bd07b1bcb54b2b5b59cf7acfe867ec957920d95f5421e1b90b9675eada6d009
5
5
  SHA512:
6
- metadata.gz: 2a4a520ff71bc5209cf919107bbcac89b72a83cd337cffb56679401c963dd5f397ddaa72161363c3f5b1e44e6af74c2001bc5a3b8c37fa9883ddfc3f4bcbc116
7
- data.tar.gz: 26b064e717abb1629211f1b469d69e09f986aedd67d072ca4332e75673060c464f5692a3df9617870da82cee47285b77972bd3bb9732204b149a80549c700cbb
6
+ metadata.gz: e5aa526ac915068c481ad40af23e1fe187b092b4c93d422fef1ed2eabf549d93154e48a4dbbc0b0dcd39a5e6561136816bbdb518a4fdca20d316112c57a41a33
7
+ data.tar.gz: 21ddd32830c1855ffce524b2fa0d992b6e125f2c1589f9d511a207642093b1349de5678c270756985f27fa7c5b1f02ed227828a036f88a56b920d42f59fe1419
@@ -7,7 +7,7 @@ module Mks
7
7
  roles = @user.roles.joins(:application_module)
8
8
  .where('mks_auth_application_modules.code = ?', params[:app_module])
9
9
  menus = []
10
- menu_list = roles.inject([]) { |items, r| items += r.menus }.uniq
10
+ menu_list = roles.inject([]) { |items, r| items += r.menus.includes(:parent) }.uniq
11
11
  parents = menu_list.select { |menu| menu.parent.nil? }
12
12
  parents.each do |parent|
13
13
  children = (menu_list.select { |menu| menu.parent == parent }).uniq
@@ -1,5 +1,5 @@
1
1
  module Mks
2
2
  module Auth
3
- VERSION = '1.0.11'.freeze
3
+ VERSION = '1.0.12'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mks_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henock L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-31 00:00:00.000000000 Z
11
+ date: 2018-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails