qcms 1.3.7 → 1.3.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.7
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
- file = "admin/documents/_#{@document.label}_form.html.erb"
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
- target = File.join(view_path, file)
38
- logger.debug 'PARTIAL ' + target
39
- if File.exists? target
40
- return file.gsub('/_', '/')
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{qcms}
8
- s.version = "1.3.7"
8
+ s.version = "1.3.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kris Leech"]
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: 21
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 7
10
- version: 1.3.7
9
+ - 8
10
+ version: 1.3.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kris Leech