lato_users 3.0.3 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b0fc6c2e54469bfb369414fe9eaf2f38a503db27950818b382e64c66d32b3f4
4
- data.tar.gz: 05ecf73827de99d3f305bdb16f2f6f2fb6d1b512cd9326e3c23862391b1783f7
3
+ metadata.gz: 2273db9841cc0ac86b190bd03990a5afd85f5a674b6a9bb7c31246734d1606c1
4
+ data.tar.gz: 6c4efa1fc4663fead09db714d9e2e2427c60a634150983b49424e500359ece2e
5
5
  SHA512:
6
- metadata.gz: 569cc4b212c0a5ba6593f4a5d2b26617a4ec1068d10cea2c3c26fdcd10f1f5e029221c66da503c89dd81fbf5a18bf033c6e16e76f23c3718f459689e48d370df
7
- data.tar.gz: 4d46cb2cbbe245281c53bc947487aa004f34bcbd177c87415952615911de52ad9ca815b5faa2edf67466f06bcdbc4b7efcabe73e0dcff7df19d82f7f75099198
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
@@ -45,7 +45,7 @@ user ||= Lato::User.new
45
45
 
46
46
  <div class="row mb-3">
47
47
  <div class="col-12">
48
- <div class="card bg-light">
48
+ <div class="card">
49
49
  <div class="card-body">
50
50
  <div class="row align-items-center">
51
51
  <div class="col-auto">
@@ -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"
@@ -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"
@@ -1,3 +1,3 @@
1
1
  module LatoUsers
2
- VERSION = "3.0.3"
2
+ VERSION = "3.0.5"
3
3
  end
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.3
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: 2025-12-22 00:00:00.000000000 Z
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: 3.4.1
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: []