has_dynamic_columns 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 6e4bad99fd8958013ac1466934d53fb8be417612
4
- data.tar.gz: ecf7e132334c6eb87377cd9d3806759b897bf4db
3
+ metadata.gz: 39e5eb44c24247b1b6b2bd23eef9950f73d06954
4
+ data.tar.gz: b67d157f05f56617c7c9fe4cb8d74a64fb781c53
5
5
  SHA512:
6
- metadata.gz: 4a0a720d565dadab5182c517a970608d0319f546d38cff0e09f042bf4b1b29d9abb73c1efaa5ea59a777ef6b0bc3a86329ea84c633714c94a390a806a80de9e0
7
- data.tar.gz: 03cb3fefc739982f2d041cac8205e92edad8d650ab236c39ffb044c52dad4c29d4d72e6d2dd39ce0a6fcea9ce143a53d55068230f4f9f9426da35ab7b28bfd18
6
+ metadata.gz: 9f5ffd8504ae8bc64e775119ec8b7c967e8186faf60c44414dc51ff072e3e0f790cd06f9b9c2642227b2ae562a24c4cd870b6e792ca8ff205a006da0c6c4b74b
7
+ data.tar.gz: c90bc7f0c510690e168ad8caff93ae2416ee466be0c981b288ef4ad76b182de8e078e06eb59fe09ad0d74b344471a13927f88f92361f355da6b98bbef4bde200
@@ -120,7 +120,7 @@ module HasDynamicColumns
120
120
  )
121
121
 
122
122
  column_table_join = table.create_join(column_table, column_table_join_on)
123
- query = (query.nil?)? joins(column_table_join) : query.join(column_table_join)
123
+ query = (query.nil?)? joins(column_table_join) : query.joins(column_table_join)
124
124
 
125
125
  # Join on all the data with the provided key
126
126
  column_table_datum_join_on = column_datum_table
@@ -1,3 +1,3 @@
1
1
  module HasDynamicColumns
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -68,6 +68,14 @@ describe HasDynamicColumns do
68
68
  expect(a.customers.dynamic_where(a, { first_name: "Butch", last_name: "" }).length).to eq(1)
69
69
  end
70
70
 
71
+ it 'should find me by first and last name' do
72
+ c = customer
73
+ c.save
74
+ a = c.account
75
+
76
+ expect(a.customers.dynamic_where(a, { first_name: "Butch", last_name: "Marshall" }).length).to eq(1)
77
+ end
78
+
71
79
  it 'should return fields as json' do
72
80
  json = customer.as_json(:root => "customer")
73
81
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_dynamic_columns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Butch Marshall