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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bd31fcb4d9de3777be3945d2888752d1ff32673dcf13ec041026f24d2f7424b
|
4
|
+
data.tar.gz: 649c062a6bf86a56716835691ccfdf0ea4addf3f1bfa5eccf5ea2368afc26aea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/egov_utils/version.rb
CHANGED