forest_liana 1.3.0 → 1.3.1

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: b6d16ef5862508a2c684e836320a1b9e2f288363
4
- data.tar.gz: 86adb63b884cf0dcb10196a3040c85101b9a0e59
3
+ metadata.gz: a82d0f88305863f843f6702585b05adbaf715e1b
4
+ data.tar.gz: fb1eee9ae867599036443ba270b9d45255decc3d
5
5
  SHA512:
6
- metadata.gz: d5ff620aa9503c25bdf3b43ea735be9ce9727791f1896aab03c33a188ce7983c524df48c154871876fbbb6559cbea48e068690b6bd02c61dc117d9638052f347
7
- data.tar.gz: 6f0ee7f3879475e0fcd77ef978e8be98b861799cf4f92de4e079bb4939ee75ed7a8c94a84ab618f02320f7cc34e547a0d219247a5751f0c88357eee22a7ab7a6
6
+ metadata.gz: f2e5bfcbd2552c3bf1cacbd491f3ebbe9ea7542c42b140df8bf2763895bdabec73e5f7516ec6b1b4c1b78b8f372e81e79b27d673125802a2645b37b22cb4f90f
7
+ data.tar.gz: f156f34e5cd6c46b300d6e42129f1d94ecc950b04ab09f8a57c4fd8649f3abe3c773f4b987dd7441add2fc75788894731002d1829342c59904118bc466adbc7e
@@ -6,19 +6,19 @@ module ForestLiana
6
6
  attribute :last_seen_ip
7
7
 
8
8
  attribute :created_at do
9
- object.created_at.utc.try(:iso8601)
9
+ object.created_at.try(:utc).try(:iso8601)
10
10
  end
11
11
 
12
12
  attribute :updated_at do
13
- object.updated_at.utc.try(:iso8601)
13
+ object.updated_at.try(:utc).try(:iso8601)
14
14
  end
15
15
 
16
16
  attribute :signed_up_at do
17
- object.signed_up_at.utc.try(:iso8601)
17
+ object.signed_up_at.try(:utc).try(:iso8601)
18
18
  end
19
19
 
20
20
  attribute :last_request_at do
21
- object.last_request_at.utc.try(:iso8601)
21
+ object.last_request_at.try(:utc).try(:iso8601)
22
22
  end
23
23
 
24
24
  attribute :country do
@@ -66,6 +66,19 @@ module ForestLiana
66
66
  integration: 'intercom'
67
67
  }
68
68
 
69
+ @collection.fields << {
70
+ field: :intercom_attributes,
71
+ type: 'String',
72
+ reference: 'intercom_attributes.id',
73
+ column: nil,
74
+ is_searchable: false,
75
+ integration: 'intercom'
76
+ }
77
+ end
78
+
79
+ # Stripe
80
+ if ForestLiana.integrations.try(:[], :stripe)
81
+ .try(:[], :user_collection) == @model.name
69
82
  collection.fields << {
70
83
  field: :stripe_payments,
71
84
  type: ['String'],
@@ -23,7 +23,8 @@ module ForestLiana
23
23
  if column.name == 'id'
24
24
  conditions << "#{@resource.table_name}.id =
25
25
  #{@params[:search].to_i}"
26
- elsif column.type == :string || column.type == :text
26
+ elsif !column.array && (column.type == :string ||
27
+ column.type == :text)
27
28
  conditions <<
28
29
  "#{column.name} ILIKE '%#{@params[:search].downcase}%'"
29
30
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-19 00:00:00.000000000 Z
11
+ date: 2016-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails