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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fe9b6993cff6a3c3d8ee78aed6cd6d1bd98aeaeabf257860a50e9382f52d389
|
4
|
+
data.tar.gz: e525e46b1a3b393084995a69c7d5acd211508966fe32affb126f09b46a31a0ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c614b3909fb97866672972fb3ac944f688e82d869ac1fe9fd49004a43e1d78d2f8bad232b5428778fe9aa63972c20ed41afd9341e23eadb3b605c64d519f056c
|
7
|
+
data.tar.gz: a4ae887f09b03705cc39e87b6a630ce901634c3bb4dfd6fdc91c397c505c7a08eae3bf8446f16535dcc1a15445d205f050383b9a369544612ec80ba12035e593
|
@@ -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
|
-
|
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)
|
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.
|
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-
|
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
|