forest_liana 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a82d0f88305863f843f6702585b05adbaf715e1b
|
|
4
|
+
data.tar.gz: fb1eee9ae867599036443ba270b9d45255decc3d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
data/lib/forest_liana/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-04-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|