thecore_ui_rails_admin 3.2.15 → 3.2.16

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: 400e938ba01c35c3dfbe3b9bb1d643e1645820d4db6fcaf7b0120813427598d2
4
- data.tar.gz: c12f12dd74d4247ede951a0b44b1423f186715f13934776475e602e2c8e16d35
3
+ metadata.gz: 1fe9b6993cff6a3c3d8ee78aed6cd6d1bd98aeaeabf257860a50e9382f52d389
4
+ data.tar.gz: e525e46b1a3b393084995a69c7d5acd211508966fe32affb126f09b46a31a0ab
5
5
  SHA512:
6
- metadata.gz: 2d31a47d695818c48f310dccd60a29877a8a46f831d1bbf1dc243192c050c3270aa4170a6a243a15d2ae9517648770cab495e6cb3c2058b2b81af5bdc566777f
7
- data.tar.gz: d7771f928cc4545711bfbd4daf5d3597b142420ffb6731fe9b34b7cc07eec68bbf3a90f67e05f9cf46dcd2bca4c74576516f6d4e5ce46f490a7971dfacb0f9e8
6
+ metadata.gz: c614b3909fb97866672972fb3ac944f688e82d869ac1fe9fd49004a43e1d78d2f8bad232b5428778fe9aa63972c20ed41afd9341e23eadb3b605c64d519f056c
7
+ data.tar.gz: a4ae887f09b03705cc39e87b6a630ce901634c3bb4dfd6fdc91c397c505c7a08eae3bf8446f16535dcc1a15445d205f050383b9a369544612ec80ba12035e593
@@ -14,6 +14,6 @@ en:
14
14
  breadcrumb: Change Password
15
15
  menu: Change Password
16
16
  success: Your password has been changed successfully
17
- error: An error occurred while changing your password
17
+ error: Error! %{errors}
18
18
  scopes:
19
19
  _all: All
@@ -14,6 +14,6 @@ it:
14
14
  breadcrumb: Cambia Password
15
15
  menu: Cambia Password
16
16
  success: La tua password è stata cambiata con successo
17
- error: Si è verificato un errore durante il cambio della password
17
+ error: Attenzione! %{errors}
18
18
  scopes:
19
19
  _all: Tutti
@@ -13,11 +13,12 @@ RailsAdmin::Config::Actions.add_action "change_password", :base, :member do
13
13
  proc do
14
14
  # if it's a form submission, then update the password
15
15
  if request.patch?
16
- if ::User.find(@object.id).update(password: params[:user][:password], password_confirmation: params[:user][:password_confirmation])
16
+ u = ::User.find(@object.id)
17
+ if u.update(password: params[:user][:password], password_confirmation: params[:user][:password_confirmation])
17
18
  flash[:success] = I18n.t("admin.actions.change_password.success")
18
19
  else
19
20
  # Add errors to the object
20
- flash[:error] = I18n.t("admin.actions.change_password.error")
21
+ flash[:error] = I18n.t("admin.actions.change_password.error", errors: u.errors.full_messages.join(', '))
21
22
  end
22
23
  # Redirect to the object
23
24
  redirect_to index_path(model_name: @abstract_model.to_param)
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiRailsAdmin
2
- VERSION = "3.2.15".freeze
2
+ VERSION = "3.2.16".freeze
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.15
4
+ version: 3.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-02-06 00:00:00.000000000 Z
10
+ date: 2025-02-12 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: thecore_ui_commons