activedocument 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ActiveDocument/search_options.rb +3 -3
- metadata +2 -2
@@ -35,7 +35,7 @@ module ActiveDocument
|
|
35
35
|
constraints = String.new
|
36
36
|
@value_constraints.each do |key, value|
|
37
37
|
constraints << <<-XML
|
38
|
-
<constraint name="#{key}">
|
38
|
+
<constraint name="#{key.gsub(/\s/, '_')}">
|
39
39
|
<value>
|
40
40
|
<element ns="#{value["namespace"]}" name="#{value["element"]}"/>
|
41
41
|
</value>
|
@@ -45,7 +45,7 @@ module ActiveDocument
|
|
45
45
|
|
46
46
|
@word_constraints.each do |key, value|
|
47
47
|
constraints << <<-XML
|
48
|
-
<constraint name="#{key}">
|
48
|
+
<constraint name="#{key.gsub(/\s/, '_')}">
|
49
49
|
<word>
|
50
50
|
<element ns="#{value["namespace"]}" name="#{value["element"]}"/>
|
51
51
|
</word>
|
@@ -55,7 +55,7 @@ module ActiveDocument
|
|
55
55
|
|
56
56
|
@range_constraints.each do |key, value|
|
57
57
|
constraints << <<-XML
|
58
|
-
<constraint name="#{key}">
|
58
|
+
<constraint name="#{key.gsub(/\s/, '_')}">
|
59
59
|
<range type="#{value["type"]}"
|
60
60
|
XML
|
61
61
|
if value.has_key?("collation")
|