express_admin 1.7.7 → 1.7.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: fb4dcea29bd7026c1579aee6ac0876ab918453a7
|
|
4
|
+
data.tar.gz: 6b09ea7f4ad3d166a11cbdeea350d72146474015
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c644c309581c1185be671826966a12e5b5cae76afbd863921b3823c8d60a11c6e63845ae8b8fd0264dda19c8a26d3ce8bb24359327aaf7241384fcdc278fc442
|
|
7
|
+
data.tar.gz: 5b30b7f9fd5f86e5d4ba2ae4ccebfc3c546a5fb07177a9553fa00898512a28070e8366043d1b5da0787096f436dc231e4b6b227a3ef5414911932f8187e57e24
|
|
@@ -24,7 +24,13 @@ module ExpressAdmin
|
|
|
24
24
|
modules.compact!
|
|
25
25
|
modules << controller_name
|
|
26
26
|
|
|
27
|
-
controller_class =
|
|
27
|
+
controller_class = nil
|
|
28
|
+
begin
|
|
29
|
+
controller_class = "#{modules.join("/").classify.pluralize}Controller".constantize
|
|
30
|
+
rescue NameError => e
|
|
31
|
+
# if plural fails, use singular
|
|
32
|
+
controller_class = "#{modules.join("/").classify}Controller".constantize
|
|
33
|
+
end
|
|
28
34
|
if controller_class.respond_to?(:resource_class)
|
|
29
35
|
resource_class = controller_class.resource_class
|
|
30
36
|
if resource_class.respond_to?(:commands)
|
data/test/dummy/db/test.sqlite3
CHANGED
|
Binary file
|
|
@@ -30,15 +30,15 @@ module ExpressAdmin
|
|
|
30
30
|
<table class="definition-table" id="deftable">
|
|
31
31
|
<tbody>
|
|
32
32
|
<tr>
|
|
33
|
-
<th align="
|
|
33
|
+
<th align="left">Term1:</th>
|
|
34
34
|
<td>def1</td>
|
|
35
35
|
</tr>
|
|
36
36
|
<tr>
|
|
37
|
-
<th align="
|
|
37
|
+
<th align="left">Term2:</th>
|
|
38
38
|
<td>def2</td>
|
|
39
39
|
</tr>
|
|
40
40
|
<tr>
|
|
41
|
-
<th align="
|
|
41
|
+
<th align="left">Term3:</th>
|
|
42
42
|
<td>def3</td>
|
|
43
43
|
</tr>
|
|
44
44
|
</tbody>
|
|
@@ -49,11 +49,11 @@ HTML
|
|
|
49
49
|
<table class="definition-table" id="deftable">
|
|
50
50
|
<tbody>
|
|
51
51
|
<tr>
|
|
52
|
-
<th align="
|
|
52
|
+
<th align="left">Field1:</th>
|
|
53
53
|
<td>{{resource.field1}}</td>
|
|
54
54
|
</tr>
|
|
55
55
|
<tr>
|
|
56
|
-
<th align="
|
|
56
|
+
<th align="left">Field2:</th>
|
|
57
57
|
<td>{{resource.field2}}</td>
|
|
58
58
|
</tr>
|
|
59
59
|
</tbody>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: express_admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.7.
|
|
4
|
+
version: 1.7.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Steven Talcott Smith
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bourbon
|
|
@@ -655,7 +655,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
655
655
|
version: '0'
|
|
656
656
|
requirements: []
|
|
657
657
|
rubyforge_project:
|
|
658
|
-
rubygems_version: 2.4.
|
|
658
|
+
rubygems_version: 2.4.8
|
|
659
659
|
signing_key:
|
|
660
660
|
specification_version: 4
|
|
661
661
|
summary: ExpressAdmin provides an admin menu framework based on Foundation.
|