egov_utils 0.2.3 → 0.2.4

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: e836fc9a7af7ad919aa1f7ca11cd219b1638658b9d8175c6a42b38a135e82ade
4
- data.tar.gz: 39e08a79f21b567fa29782d43ac93f90c82ee34a6ad5c49d3c20d5882a52a481
3
+ metadata.gz: 4bd31fcb4d9de3777be3945d2888752d1ff32673dcf13ec041026f24d2f7424b
4
+ data.tar.gz: 649c062a6bf86a56716835691ccfdf0ea4addf3f1bfa5eccf5ea2368afc26aea
5
5
  SHA512:
6
- metadata.gz: 2102927f04d840b6e0e2e8024bc7bfab2b96db6ed1a12beb9e8b3be9466decab131186d3af40699ef83ffcd09cbc5d43f4917318602f319dfb8270a8cc57ac7d
7
- data.tar.gz: 40b49952c43d6ae78e2d6df633e4f9f64749fa7d7fa6f003ed77cd479dc22fa379ffa899d427c25cca765fdd0183c1af8ce50bd462993d7d75e7dcac87f3d5e6
6
+ metadata.gz: e480af6f3c801dfc11467ec8cf27ace0d8f7f22f1606f36df0401eee146e76f7d284ed203e634051d506e86b21109a127d6b96224d50a2ec291458edd09b071f
7
+ data.tar.gz: 0b6d87e769e33b08581adebd2f62a0dd3ba3e3ef043ce41037793391f753ad75d0a9816b02b9a461162ffdbaa4fe8cabe3aafc7ab0059f31a7e80aa3d07f29e8
@@ -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: :destroy
10
+ load_and_authorize_resource only: [:new, :create, :destroy]
11
11
 
12
12
  def index
13
13
  providers
@@ -17,11 +17,9 @@ module EgovUtils
17
17
  end
18
18
 
19
19
  def new
20
- @user = User.new
21
20
  end
22
21
 
23
22
  def create
24
- @user = User.new(create_params)
25
23
  @user.mail ||= @user.login
26
24
  respond_to do |format|
27
25
  if @user.save
@@ -12,7 +12,7 @@ module EgovUtils
12
12
  rescue_from CanCan::AccessDenied do |exception|
13
13
  respond_to do |format|
14
14
  format.json { head :forbidden, content_type: 'text/html' }
15
- format.html { render template: "errors/error_403", error: exception.message }
15
+ format.html { render template: "errors/error_403", error: exception.message, status: 403 }
16
16
  format.js { head :forbidden, content_type: 'text/html' }
17
17
  end
18
18
  end
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egov_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr