cowtech-rails 1.7.3.0 → 1.7.3.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -128,7 +128,7 @@ module Cowtech
|
|
128
128
|
end
|
129
129
|
|
130
130
|
parameters[key] = val
|
131
|
-
"
|
131
|
+
"@FIELD@ LIKE :#{key}"
|
132
132
|
end
|
133
133
|
|
134
134
|
[search, parameters]
|
@@ -164,7 +164,7 @@ module Cowtech
|
|
164
164
|
|
165
165
|
unless external[:manual] then
|
166
166
|
external_conds = []
|
167
|
-
external.fetch(:fields, []).each do |external_field| external_conds << "(#{search.gsub("@FIELD@",
|
167
|
+
external.fetch(:fields, []).each do |external_field| external_conds << "(#{search.gsub("@FIELD@", external_field.to_s)})" end
|
168
168
|
external_field = external.fetch(:external_field, "id")
|
169
169
|
external_query = "(#{external.fetch(:field, "id")} IN (SELECT #{external.fetch(:external_field, "id")} FROM #{external[:table]} WHERE #{external_conds.join(" OR ")}))"
|
170
170
|
else
|
data/lib/cowtech/version.rb
CHANGED