thecore_ui_rails_admin 3.2.15 → 3.2.17

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: 75ddc430ff09daa70017156fd017e78de06fa84fac613e51cbc56ceb455d4fec
4
+ data.tar.gz: 6528caf63f25c66fa1da89424e38e62591db62d3ade64ce8fa337fc56c223ee5
5
5
  SHA512:
6
- metadata.gz: 2d31a47d695818c48f310dccd60a29877a8a46f831d1bbf1dc243192c050c3270aa4170a6a243a15d2ae9517648770cab495e6cb3c2058b2b81af5bdc566777f
7
- data.tar.gz: d7771f928cc4545711bfbd4daf5d3597b142420ffb6731fe9b34b7cc07eec68bbf3a90f67e05f9cf46dcd2bca4c74576516f6d4e5ce46f490a7971dfacb0f9e8
6
+ metadata.gz: d844964e62c6056be524d309d1aeecc86e1f2eeed96fd15a641b3a8df9101172131e6d5d57d435c3fbaff320d74a458a0a298c4c44f0f70856deb6faf00044f2
7
+ data.tar.gz: 503dc5a8d2a52a1fbb867a5f148bcffde9cf844916d9df9c4aec4506e3448c43f866469f2510b66c216d96660cde10bfde5d785e33c9da7d42499ad9a37a1ab4
@@ -7,9 +7,9 @@ module ThecoreUiRailsAdminActionConcern
7
7
  included do
8
8
 
9
9
  rails_admin do
10
- navigation_label I18n.t("admin.settings.label")
10
+ navigation_label Proc.new {I18n.t("admin.settings.label")}
11
11
  navigation_icon 'fas fa-users'
12
- desc I18n.t("activerecord.descriptions.role")
12
+ desc -> {I18n.t("activerecord.descriptions.role")}
13
13
 
14
14
  visible false
15
15
 
@@ -7,9 +7,9 @@ module ThecoreUiRailsAdminPermissionConcern
7
7
  included do
8
8
 
9
9
  rails_admin do
10
- navigation_label I18n.t("admin.settings.label")
10
+ navigation_label Proc.new {I18n.t("admin.settings.label")}
11
11
  navigation_icon 'fas fa-users'
12
- desc I18n.t("activerecord.descriptions.role")
12
+ desc -> {I18n.t("activerecord.descriptions.role")}
13
13
 
14
14
  visible false
15
15
 
@@ -7,9 +7,9 @@ module ThecoreUiRailsAdminPermissionRoleConcern
7
7
  included do
8
8
 
9
9
  rails_admin do
10
- navigation_label I18n.t("admin.settings.label")
10
+ navigation_label Proc.new {I18n.t("admin.settings.label")}
11
11
  navigation_icon 'fas fa-users'
12
- desc I18n.t("activerecord.descriptions.role")
12
+ desc -> {I18n.t("activerecord.descriptions.role")}
13
13
 
14
14
  visible false
15
15
  end
@@ -7,9 +7,9 @@ module ThecoreUiRailsAdminPredicateConcern
7
7
  included do
8
8
 
9
9
  rails_admin do
10
- navigation_label I18n.t("admin.settings.label")
10
+ navigation_label Proc.new {I18n.t("admin.settings.label")}
11
11
  navigation_icon 'fas fa-users'
12
- desc I18n.t("activerecord.descriptions.role")
12
+ desc -> {I18n.t("activerecord.descriptions.role")}
13
13
 
14
14
  visible false
15
15
 
@@ -7,9 +7,9 @@ module ThecoreUiRailsAdminRoleConcern
7
7
  included do
8
8
 
9
9
  rails_admin do
10
- navigation_label I18n.t("admin.settings.label")
10
+ navigation_label Proc.new {I18n.t("admin.settings.label")}
11
11
  navigation_icon 'fas fa-users'
12
- desc I18n.t("activerecord.descriptions.role")
12
+ desc -> {I18n.t("activerecord.descriptions.role")}
13
13
 
14
14
  field :name
15
15
  field :permissions
@@ -7,9 +7,9 @@ module ThecoreUiRailsAdminRoleUserConcern
7
7
  included do
8
8
 
9
9
  rails_admin do
10
- navigation_label I18n.t("admin.settings.label")
10
+ navigation_label Proc.new {I18n.t("admin.settings.label")}
11
11
  navigation_icon 'fas fa-users'
12
- desc I18n.t("activerecord.descriptions.role")
12
+ desc -> {I18n.t("activerecord.descriptions.role")}
13
13
 
14
14
  visible false
15
15
  end
@@ -7,9 +7,9 @@ module ThecoreUiRailsAdminTargetConcern
7
7
  included do
8
8
 
9
9
  rails_admin do
10
- navigation_label I18n.t("admin.settings.label")
10
+ navigation_label Proc.new {I18n.t("admin.settings.label")}
11
11
  navigation_icon 'fas fa-users'
12
- desc I18n.t("activerecord.descriptions.role")
12
+ desc -> {I18n.t("activerecord.descriptions.role")}
13
13
 
14
14
  visible false
15
15
 
@@ -23,10 +23,10 @@ module ThecoreUiRailsAdminUserConcern
23
23
  end
24
24
 
25
25
  rails_admin do
26
- navigation_label I18n.t("admin.settings.label")
26
+ navigation_label Proc.new { I18n.t("admin.settings.label") }
27
27
  navigation_icon 'fa fa-user-circle'
28
28
  parent Role
29
- desc I18n.t("activerecord.descriptions.user")
29
+ desc -> { I18n.t("activerecord.descriptions.user") }
30
30
 
31
31
  exclude_fields :id, :remember_created_at, :sign_in_count, :current_sign_in_at, :last_sign_in_at, :current_sign_in_ip, :last_sign_in_ip, :lock_version, :role_users
32
32
 
@@ -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.17".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.17
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-14 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: thecore_ui_commons