query_helper 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/query_helper/column_map.rb +1 -1
- data/lib/query_helper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78d3243fbf7e2565a4729636a43bce07ce12e891e4c7c154e3d086c6cbb3ff28
|
4
|
+
data.tar.gz: 54db35985205d12098c3f97c57c3cc25baeea13588fd82cb4c55ff8b040155a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 045e30a87e6bcbdd513f9fe25911897ef94db45fd8931201491c184d36f7f2582aaf465ed0b1ded8f8abc2a00697e7c0fed1bf62f2c019fb427a50dfa8e95a29
|
7
|
+
data.tar.gz: c66c347806fd79685a4232f9922cd2dba8cb31ae5d0af76e88d5f547bfe5fa51a15d618f8aacefa673f39b6eb0dccd298cf64134860866dd8d937aff439b1309
|
@@ -13,7 +13,7 @@ class QueryHelper
|
|
13
13
|
|
14
14
|
model.attribute_names.each do |attribute|
|
15
15
|
if maps.select{|x| x.alias_name == attribute}.empty?
|
16
|
-
maps << ColumnMap.new(alias_name: attribute, sql_expression: "#{model.to_s.
|
16
|
+
maps << ColumnMap.new(alias_name: attribute, sql_expression: "#{model.to_s.underscore.pluralize}.#{attribute}")
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
data/lib/query_helper/version.rb
CHANGED