egov_utils 0.3.6 → 0.3.7

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: 9d02246d97122065126c32dbe45c61eec0ab2c5121000526186f1aa6252491a7
4
- data.tar.gz: 4b26d6a69cfbfd721899ffcdf43af76f543ef849a9febbfbbba90d8b55525d4a
3
+ metadata.gz: 17e30077a4774b212c27b245031ccab24fa03dd32d2c94805ebac4207581664c
4
+ data.tar.gz: 87295e5b9456958d12c7e781d9c34f918dba8a22a64efd4d3152071a350fc912
5
5
  SHA512:
6
- metadata.gz: 9df9e26dedcb00adacd55708b381fee93d1b5a5117cc546fc951e06ccf6de5567df3eb389acd151aa12696800b748538d5e96e873a7bb87bb0701b59a1465ec2
7
- data.tar.gz: 75bba2c63084a367855a3cedf5d88cac98a56b2395b92060dd2eb2c6a461a8cebad002ce4895080c48ddb0bedc1a30329babcfeb3db1bed831be1e4ee0b51a75
6
+ metadata.gz: 25eb09cfc576a81db2082290e54002c40652e2adfe5853d0dc263ae1195203109962ec7304aa34f1904d7409c9e30bb6a1d21a9acabdd0d5c8e16750593c5127
7
+ data.tar.gz: c263e8556b37a913f939b88a59faf1ab34912bf59d6ef5f369f25bdbb08c1a04873ede2033494164c3a26b9287eff47312c38c69f68a702761858934f6e63b71
@@ -7,7 +7,7 @@ module EgovUtils
7
7
  skip_before_action :require_login, only: [:new, :create, :confirm]
8
8
 
9
9
  authorize_resource only: :index
10
- load_and_authorize_resource only: [:new, :create, :destroy]
10
+ load_and_authorize_resource only: [:new, :create, :show, :destroy]
11
11
 
12
12
  def index
13
13
  providers
@@ -1,2 +1,7 @@
1
- %h3= current_user.fullname
2
- = current_user.mail || current_user.login
1
+ %h3= @user.fullname
2
+ = @user.mail || @user.login
3
+
4
+ %h5= EgovUtils::Group.model_name.human(count: :other)
5
+ %ul
6
+ - @user.groups.each do |group|
7
+ %li= group.name
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.3.6'
2
+ VERSION = '0.3.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egov_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-27 00:00:00.000000000 Z
11
+ date: 2018-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails