thecore_ui_rails_admin 3.5.0 → 3.5.1

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: cdcb1fa31ff5193b98c15b1243db136f723b4bf7e5379c1245d0a0c8117e54f2
4
- data.tar.gz: dad5d6adc509ab31d1b0bf55e64209e4f162dd0d4d2db7cea787ea59cbfa64b7
3
+ metadata.gz: 4a25dd232dbfdfb24580adcb9171ea51ce2057cec2a4c8c1c688c517ffbc38ec
4
+ data.tar.gz: 8155fdf0de1aa96c27a859f6d4a8402d6bb1dc57a525996eb1510118677a1c96
5
5
  SHA512:
6
- metadata.gz: ef1d926329dd1f13591c0d4eb03a7d6f0d65c6187073877148be3959c50469a7babf291156ff23578cda6a4376c862f3641fad82159957fae0df225cb377f757
7
- data.tar.gz: 27279ea7e643428354c4b6f412dd6ea46d38691a8f0c2cb4cb410b6b9fb6f777b8ecc1f887628657b1e0fd86414a692868b7e10938d882681cc7c82085e06328
6
+ metadata.gz: 674e7d39dc22303c919e82e9f0abd7139c043ef169769b21ee6d20b8a4c6ba47e9c29b6de5670e324be1f150760056ed1c0afba113ebc08d99ea5d9c2e487a88
7
+ data.tar.gz: 9bfbf1f7ec2a9baeddafe77f03d710d070275eed49859a7f407c6d76c51727154d5c41649e403c551aef5aa9d8403f975a89d0b5f2e9786f65ae9ce4ebdeede3
@@ -1,88 +1,91 @@
1
1
  puts "User Concern from ThecoreUiRailsAdmin"
2
- require 'active_support/concern'
2
+ require "active_support/concern"
3
3
 
4
4
  module ThecoreUiRailsAdminUserConcern
5
- extend ActiveSupport::Concern
6
-
7
- included do
8
- has_many :saved_filters, class_name: 'SavedFilter', foreign_key: :admin_user_id, dependent: :destroy
9
- has_many :user_preferences, class_name: 'UserPreference', foreign_key: :user_id, dependent: :destroy, inverse_of: :user
10
- accepts_nested_attributes_for :user_preferences, allow_destroy: true
5
+ extend ActiveSupport::Concern
11
6
 
12
- # def admin_enum
13
- # [["",true],['✘',false]]
14
- # end
7
+ included do
8
+ has_many :saved_filters, class_name: "SavedFilter", foreign_key: :admin_user_id, dependent: :destroy
9
+ has_many :user_preferences, class_name: "UserPreference", foreign_key: :user_id, dependent: :destroy, inverse_of: :user
10
+ accepts_nested_attributes_for :user_preferences, allow_destroy: true
15
11
 
16
- # def locked_enum
17
- # [["✔",true],['✘',false]]
18
- # end
19
- #
20
-
21
- # locale field is a string which can be chosen from the list of available locales: it and en
22
- # The default locale is the one set in the I18n.default_locale
23
- # The locale is used to set the language of the user
24
- def locale_enum
25
- [['Italiano', 'it'], ['English', 'en']]
26
- end
27
-
28
- rails_admin do
29
- navigation_label Proc.new { I18n.t("admin.settings.label") }
30
- navigation_icon 'fa fa-user-circle'
31
- parent Role
32
- # desc Proc.new { I18n.t("activerecord.descriptions.user") }
33
-
34
- # Hide 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
35
- configure :id do
36
- hide
37
- end
38
- configure :remember_created_at do
39
- hide
40
- end
41
- configure :sign_in_count do
42
- hide
43
- end
44
- configure :current_sign_in_at do
45
- hide
46
- end
47
- configure :last_sign_in_at do
48
- hide
49
- end
50
- configure :current_sign_in_ip do
51
- hide
52
- end
53
- configure :last_sign_in_ip do
54
- hide
55
- end
56
- configure :lock_version do
57
- hide
58
- end
59
- configure :role_users do
60
- hide
61
- end
62
- configure :saved_filters do
63
- hide
64
- end
65
- configure :auth_source do
66
- read_only true
67
- end
12
+ # def admin_enum
13
+ # [["✔",true],['✘',false]]
14
+ # end
15
+
16
+ # def locked_enum
17
+ # [["✔",true],['✘',false]]
18
+ # end
19
+ #
20
+
21
+ # locale field is a string which can be chosen from the list of available locales: it and en
22
+ # The default locale is the one set in the I18n.default_locale
23
+ # The locale is used to set the language of the user
24
+ def locale_enum
25
+ [["Italiano", "it"], ["English", "en"]]
26
+ end
27
+
28
+ rails_admin do
29
+ navigation_label Proc.new { I18n.t("admin.settings.label") }
30
+ navigation_icon "fa fa-user-circle"
31
+ parent Role
32
+ # desc Proc.new { I18n.t("activerecord.descriptions.user") }
68
33
 
69
- update do
70
- configure :password do
71
- hide
72
- end
73
- configure :password_confirmation do
74
- hide
75
- end
76
- end
34
+ # Hide 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
35
+ configure :id do
36
+ hide
37
+ end
38
+ configure :remember_created_at do
39
+ hide
40
+ end
41
+ configure :sign_in_count do
42
+ hide
43
+ end
44
+ configure :current_sign_in_at do
45
+ hide
46
+ end
47
+ configure :last_sign_in_at do
48
+ hide
49
+ end
50
+ configure :current_sign_in_ip do
51
+ hide
52
+ end
53
+ configure :last_sign_in_ip do
54
+ hide
55
+ end
56
+ configure :lock_version do
57
+ hide
58
+ end
59
+ configure :role_users do
60
+ hide
61
+ end
62
+ configure :saved_filters do
63
+ hide
64
+ end
65
+ configure :user_preferences do
66
+ hide
67
+ end
68
+ configure :auth_source do
69
+ read_only true
70
+ end
77
71
 
78
- create do
79
- configure :password do
80
- required true
81
- end
82
- configure :password_confirmation do
83
- required true
84
- end
85
- end
72
+ update do
73
+ configure :password do
74
+ hide
75
+ end
76
+ configure :password_confirmation do
77
+ hide
78
+ end
79
+ end
80
+
81
+ create do
82
+ configure :password do
83
+ required true
84
+ end
85
+ configure :password_confirmation do
86
+ required true
86
87
  end
88
+ end
87
89
  end
88
- end
90
+ end
91
+ end
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiRailsAdmin
2
- VERSION = "3.5.0".freeze
2
+ VERSION = "3.5.1".freeze
3
3
  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.5.0
4
+ version: 3.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni