qcms 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/helpers/admin/documents_helper.rb +9 -5
- data/qcms.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.8
|
@@ -32,12 +32,16 @@ module Admin::DocumentsHelper
|
|
32
32
|
|
33
33
|
# Find the correct form partial for @document
|
34
34
|
def form_partial
|
35
|
-
|
35
|
+
root = 'admin/documents'
|
36
|
+
choices = ["_#{@document.meta_definition.label_path.gsub('/', '_')}_form.html.erb", "_#{@document.label}_form.html.erb"]
|
37
|
+
|
36
38
|
self.view_paths.each do | view_path |
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
39
|
+
choices.each do | choice |
|
40
|
+
target = File.join(view_path, root, choice)
|
41
|
+
logger.debug 'FORM: ' + target
|
42
|
+
if File.exists? target
|
43
|
+
return File.join(root, choice).gsub('/_', '/')
|
44
|
+
end
|
41
45
|
end
|
42
46
|
end
|
43
47
|
"admin/documents/form"
|
data/qcms.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qcms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 8
|
10
|
+
version: 1.3.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kris Leech
|