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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1988f3c68a54af6511be4ef536fa27df2080fdfa5495b8f5532ad729fdf0f029
4
- data.tar.gz: c7783fc5b7a275e4a78b9c5ca37be49c85b3e6113c9f657e72ce16101a12f364
3
+ metadata.gz: 78d3243fbf7e2565a4729636a43bce07ce12e891e4c7c154e3d086c6cbb3ff28
4
+ data.tar.gz: 54db35985205d12098c3f97c57c3cc25baeea13588fd82cb4c55ff8b040155a0
5
5
  SHA512:
6
- metadata.gz: f247dc18f26acd1937c1d963beb6a6e10bb9a96b4bdec974a9831279cacb65e3d12cc3f42cb01ab97135fc164d0e263349793ccfb51784ab72700a3b6d890abf
7
- data.tar.gz: 4573625d4a526036fae518209836ad7be1aec3b49914cfad3e457182aeab810597903b260e74422b8563f2ed04a4623a9c11907aa791014abb5ffefe5dc41037
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.downcase.pluralize}.#{attribute}")
16
+ maps << ColumnMap.new(alias_name: attribute, sql_expression: "#{model.to_s.underscore.pluralize}.#{attribute}")
17
17
  end
18
18
  end
19
19
 
@@ -1,3 +1,3 @@
1
1
  class QueryHelper
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan McDaniel