express_admin 1.6.7 → 1.6.8
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f00a1edf85325683bacaa192ffc953375d0b385
|
|
4
|
+
data.tar.gz: 43faad11e056489cd1db18e336db502efc3a0934
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c6c073b2433d4f6466ed61dc5e803258a0e6260c1f80d65057af1ac63056a3bd60cd931fbc4d98a03ac083d5ffe76e489304b6021a05987fcd70ecf95dd29df4
|
|
7
|
+
data.tar.gz: 2dcae116cefb0cfb4b04d414886ba8981df8c36c7e2f82024860f2d6969cc23a2a5a4fe0c7cfefdba7258984e48a4455615b08f620b12b8e804018fc9b5c78e4
|
|
@@ -12,6 +12,10 @@ module ExpressAdmin
|
|
|
12
12
|
has_option :only, 'Respects the order the attributes are listed in', type: :array
|
|
13
13
|
has_option :show_timestamps, 'Set to true to show timestamps as labels'
|
|
14
14
|
|
|
15
|
+
before_build {
|
|
16
|
+
add_class 'validate'
|
|
17
|
+
}
|
|
18
|
+
|
|
15
19
|
contains {
|
|
16
20
|
# TODO: taken from express_form. should be inherited?
|
|
17
21
|
div(style: 'display:none') {
|
|
@@ -75,6 +75,14 @@ module ExpressAdmin
|
|
|
75
75
|
a.join().html_safe
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
+
def include_theme_assets(theme_name)
|
|
79
|
+
current_module_path = current_module.to_s.underscore
|
|
80
|
+
theme_path = "#{current_module_path}/themes/#{theme_name}/application"
|
|
81
|
+
a = []
|
|
82
|
+
a << stylesheet_link_tag(theme_path)
|
|
83
|
+
a.join.html_safe
|
|
84
|
+
end
|
|
85
|
+
|
|
78
86
|
def admin_menus
|
|
79
87
|
menus = ExpressAdmin::Engine.all_addons.map do |engine|
|
|
80
88
|
ExpressAdmin::Menu[engine.addon_name.to_s] rescue nil
|
data/test/dummy/db/test.sqlite3
CHANGED
|
Binary file
|