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
- "#{self.crud_get_class.table_name}.@FIELD@ LIKE :#{key}"
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@", "#{external[:table]}.#{external_field.to_s}")})" end
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
@@ -10,7 +10,7 @@ module Cowtech
10
10
  MAJOR = 1
11
11
  MINOR = 7
12
12
  PATCH = 3
13
- BUILD = 0
13
+ BUILD = 1
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.3.0
4
+ version: 1.7.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: