lato_users 3.0.4 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/lato_users/users_controller.rb +2 -0
- data/config/locales/en.yml +1 -0
- data/config/locales/it.yml +1 -0
- data/lib/lato_users/version.rb +1 -1
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2273db9841cc0ac86b190bd03990a5afd85f5a674b6a9bb7c31246734d1606c1
|
|
4
|
+
data.tar.gz: 6c4efa1fc4663fead09db714d9e2e2427c60a634150983b49424e500359ece2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52157baaa30e4d3d168dfb3739f379372993b5989879ab8b4627e51efe9e835375af2e3dd687843240a287d0c7ed37a08879dc4a83642d5b513b684eeed1db42
|
|
7
|
+
data.tar.gz: 1123f350f197ae5f5869688a3ee8f63cc8c25ce6531a2f0eebd6f41d95e2160b832606a684fcb4c27a3069ead1c12b894e463e79af36a967459f8b696b27355d
|
|
@@ -55,6 +55,8 @@ module LatoUsers
|
|
|
55
55
|
@user = Lato::User.find(params[:id])
|
|
56
56
|
@user.destroy
|
|
57
57
|
redirect_to users_path
|
|
58
|
+
rescue ActiveRecord::InvalidForeignKey
|
|
59
|
+
redirect_to users_path, alert: I18n.t('lato_users.cannot_delete_foreign_key')
|
|
58
60
|
end
|
|
59
61
|
|
|
60
62
|
def resend_verification_email
|
data/config/locales/en.yml
CHANGED
|
@@ -11,6 +11,7 @@ en:
|
|
|
11
11
|
cta_confirm: Confirm
|
|
12
12
|
cta_delete_confirm: Are you sure you want to delete this user?
|
|
13
13
|
cannot_delete_self: You cannot delete your own user account.
|
|
14
|
+
cannot_delete_foreign_key: Cannot delete the user because it is linked to one or more records in other tables. Remove or update the linked records before proceeding with the deletion.
|
|
14
15
|
account_informations: Account Informations
|
|
15
16
|
email_verification: "Email Verification"
|
|
16
17
|
email_verified: "Email Verified"
|
data/config/locales/it.yml
CHANGED
|
@@ -11,6 +11,7 @@ it:
|
|
|
11
11
|
cta_confirm: Conferma
|
|
12
12
|
cta_delete_confirm: Sei sicuro di voler eliminare questo utente?
|
|
13
13
|
cannot_delete_self: Non puoi eliminare il tuo account utente.
|
|
14
|
+
cannot_delete_foreign_key: Impossibile eliminare l'utente perché è collegato ad uno o più record in altre tabelle. Rimuovi o aggiorna i record collegati prima di procedere con l'eliminazione.
|
|
14
15
|
account_informations: Informazioni Account
|
|
15
16
|
email_verification: "Verifica Email"
|
|
16
17
|
email_verified: "Email Verificata"
|
data/lib/lato_users/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lato_users
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gregorio Galante
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rails
|
|
@@ -88,7 +87,6 @@ licenses:
|
|
|
88
87
|
metadata:
|
|
89
88
|
homepage_uri: https://github.com/Lato-org/lato_users
|
|
90
89
|
source_code_uri: https://github.com/Lato-org/lato_users
|
|
91
|
-
post_install_message:
|
|
92
90
|
rdoc_options: []
|
|
93
91
|
require_paths:
|
|
94
92
|
- lib
|
|
@@ -103,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
103
101
|
- !ruby/object:Gem::Version
|
|
104
102
|
version: '0'
|
|
105
103
|
requirements: []
|
|
106
|
-
rubygems_version:
|
|
107
|
-
signing_key:
|
|
104
|
+
rubygems_version: 4.0.9
|
|
108
105
|
specification_version: 4
|
|
109
106
|
summary: Another engine for Lato projects
|
|
110
107
|
test_files: []
|