thecore_ui_rails_admin 3.0.19 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e483927bcfef24e0c9f5d48923ee241aca2980ecf1ea9bdc6130dbd0e683406
4
- data.tar.gz: da29456ecee758fea45205532a52abca5ea97f1bedb7002639c4bbff0f881b73
3
+ metadata.gz: 4d329590346564d4049ca6dcff96aecb5ff05a8a9c9ba548a7a3c2e2a579e5bd
4
+ data.tar.gz: a4820f4f4278a0474877c4ff9da212a46f87937beb74316da6cc7380182da859
5
5
  SHA512:
6
- metadata.gz: a35ffaecc2492c3c0c43fba3b57044224fde8163ffea558db1020ba64599919862de397ed96ec49ddd2c21405665970661548bd5a77852c594023d4b62eb7770
7
- data.tar.gz: 930fe0d19ec346a234594cc0af0dfe47271edd31af845eba1a23148df8c005881d2a224ec573aed64b1614b722da9d6f84a6e3961e5c4536ded7bce1ffba80e5
6
+ metadata.gz: ae052206e0aa7a204b6bfc690df2b616bbbe68bec21a2c9b68612f568f5a149ce395c5094d3b413333bafa3dc9f53f6977638dd43e34f121d001650aa23c074f
7
+ data.tar.gz: 3049b5394b50caf047a4d2fa95828bc64309bfa0578af4301f5c7989b9cd709cbb06e1256bbbdbb09f9e67ad99655f0f441a5cb1566d5c0376201a37dc2e429a
@@ -13,57 +13,26 @@ module ThecoreUiRailsAdminUserConcern
13
13
  parent Role
14
14
  desc I18n.t("activerecord.descriptions.user")
15
15
 
16
- # Field present Everywhere
17
- field :email do
18
- required true
19
- end
20
- field :admin do
21
- visible do
22
- bindings[:view].current_user.admin? && bindings[:view].current_user.id != bindings[:object].id rescue false
16
+ 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
17
+
18
+ configure :admin, :boolean
19
+
20
+ edit do
21
+ configure :password do
22
+ required false
23
23
  end
24
- end
25
- field :locked do
26
- visible do
27
- bindings[:view].current_user.admin? && bindings[:view].current_user.id != bindings[:object].id rescue false
24
+ configure :password_confirmation do
25
+ required false
28
26
  end
29
27
  end
30
- field :roles#, :selectize
31
-
32
- # Fields only in lists and forms
33
- list do
34
- field :created_at
35
- exclude_fields :lock_version
36
- # include UserRailsAdminListConcern
37
- end
38
- show do
39
- #exclude_fields :id
40
- exclude_fields :lock_version
41
- end
28
+
42
29
  create do
43
- field :password do
30
+ configure :password do
44
31
  required true
45
32
  end
46
- field :password_confirmation do
33
+ configure :password_confirmation do
47
34
  required true
48
35
  end
49
- # field :lock_version, :hidden do
50
- # visible true
51
- # end
52
- # include UserRailsAdminCreateConcern
53
- end
54
- edit do
55
- field :password do
56
- required false
57
- end
58
- field :password_confirmation do
59
- required false
60
- end
61
-
62
- # field :lock_version, :hidden do
63
- # visible true
64
- # end
65
- # include UserRailsAdminEditConcern
66
-
67
36
  end
68
37
  end
69
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.19
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni