express_admin 1.7.7 → 1.7.8

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
  SHA1:
3
- metadata.gz: bde3898ed01db1ba4548512f4730b2d25b578867
4
- data.tar.gz: de9e8d300dec4745570db7fc5f6bbfa89637244e
3
+ metadata.gz: fb4dcea29bd7026c1579aee6ac0876ab918453a7
4
+ data.tar.gz: 6b09ea7f4ad3d166a11cbdeea350d72146474015
5
5
  SHA512:
6
- metadata.gz: 19af65724cbdb07417e4c94499729980994265de29156a1fa27e94735d38d7689c327c47ca8c83a1e958435eb0366eb09a090604d60704634f7e209d36840f75
7
- data.tar.gz: 7190effdd03c6f90f08fd81f4a24ee558e8a49cf21448a363558a7851f2262e23ec00a16a74249c19a6be8970b2642b7d40ab4964018ae6075208d994c243003
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 = "#{modules.join("/").classify.pluralize}Controller".constantize
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)
@@ -1,3 +1,3 @@
1
1
  module ExpressAdmin
2
- VERSION = "1.7.7"
2
+ VERSION = "1.7.8"
3
3
  end
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="right">Term1:</th>
33
+ <th align="left">Term1:</th>
34
34
  <td>def1</td>
35
35
  </tr>
36
36
  <tr>
37
- <th align="right">Term2:</th>
37
+ <th align="left">Term2:</th>
38
38
  <td>def2</td>
39
39
  </tr>
40
40
  <tr>
41
- <th align="right">Term3:</th>
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="right">Field1:</th>
52
+ <th align="left">Field1:</th>
53
53
  <td>{{resource.field1}}</td>
54
54
  </tr>
55
55
  <tr>
56
- <th align="right">Field2:</th>
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.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-14 00:00:00.000000000 Z
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.7
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.