thecore_ui_rails_admin 2.5.10 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/rails_admin.rb +3 -0
- data/lib/concerns/thecore_ui_rails_admin_role.rb +1 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d9ea4f97bd820e0527837c48c1ca0a838f007cfa10041031f2324593995d86f
|
4
|
+
data.tar.gz: c6d6a9646ebdb8ecf535b3d063d79e6ef4b013e5ba32a5379840cb4a87ef48f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0fea64c936129bdd45e995567956e8dc7aaaa5e956e859bca603ce0fe1c88a7fbbd4e10db79c7f28e35fd3a541e4df8e57923056a02cbf5e6ca16ce3435aa14
|
7
|
+
data.tar.gz: 48d3f7282e701c1cf5ba01e2c7fb047efb0c33d7b0035533f0de12fa833ccbb48149a7c44bb76a4475f67bf912bbf0e2f090b6b4f7429ff9593617cb73f1a448
|
@@ -2,6 +2,9 @@ require 'rails_admin'
|
|
2
2
|
require 'nested_form/builder_mixin'
|
3
3
|
|
4
4
|
RailsAdmin.config do |config|
|
5
|
+
# Freeze more or fewer columns (col 1 = checkboxes, 2 = links/actions) for horizontal scrolling:
|
6
|
+
config.sidescroll = {num_frozen_columns: 2}
|
7
|
+
|
5
8
|
config.main_app_name = Proc.new { |controller| [ ((ENV["APP_NAME"].presence || Settings.app_name.presence) rescue "Thecore"), "" ] }
|
6
9
|
# Link for background Job
|
7
10
|
(config.navigation_static_links ||= {}).merge! "Background Monitor" => "#{ENV["BACKEND_URL"].presence || "http://localhost:3000"}/sidekiq"
|
@@ -15,23 +15,11 @@ module ThecoreUiRailsAdminRole
|
|
15
15
|
|
16
16
|
list do
|
17
17
|
field :created_at
|
18
|
-
|
18
|
+
field :updated_at
|
19
19
|
end
|
20
20
|
show do
|
21
21
|
exclude_fields :id
|
22
|
-
# exclude_fields :lock_version
|
23
22
|
end
|
24
|
-
# create do
|
25
|
-
# field :lock_version, :hidden do
|
26
|
-
# visible true
|
27
|
-
# end
|
28
|
-
# # include UserRailsAdminCreateConcern
|
29
|
-
# end
|
30
|
-
# edit do
|
31
|
-
# field :lock_version, :hidden do
|
32
|
-
# visible true
|
33
|
-
# end
|
34
|
-
# end
|
35
23
|
end
|
36
24
|
end
|
37
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_ui_rails_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_ui_commons
|