forest_liana 1.3.5 → 1.3.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64dba93b341a2fa7398bb85fd96c958533a2aa76
|
4
|
+
data.tar.gz: a4116b669724904d2fe5babec9475e9fa6f4a5af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bee192cf12a7fc29d930e25af600e96df5cfe49323d71a2140520544993e185ae473866270a627e5f6aebd28f14eb9f20f4fcd10a6a523d9e38be9acc5eaea2
|
7
|
+
data.tar.gz: 29c05d9eb49e074f3c28d400dfe2a782de740338aa4c37a00ce0f4d121eedd9e99fd073598f2f358c3b1538f49657eb13a8b83b0cfa4e78fb523dc0a7d249444
|
@@ -9,7 +9,7 @@ class ForestLiana::ActivityLogger
|
|
9
9
|
|
10
10
|
http.start do |client|
|
11
11
|
request = Net::HTTP::Post.new(uri.path)
|
12
|
-
request['Content-Type'] = 'application/
|
12
|
+
request['Content-Type'] = 'application/json'
|
13
13
|
request['forest-secret-key'] = ForestLiana.secret_key
|
14
14
|
request.body = {
|
15
15
|
action: action,
|
@@ -8,12 +8,7 @@ module ForestLiana
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def perform
|
11
|
-
|
12
|
-
@record = @resource.create(resource_params)
|
13
|
-
else
|
14
|
-
@record = @resource.create(resource_params, without_protection: true)
|
15
|
-
end
|
16
|
-
|
11
|
+
@record = @resource.create(resource_params)
|
17
12
|
set_has_many_relationships
|
18
13
|
end
|
19
14
|
|
@@ -9,13 +9,7 @@ module ForestLiana
|
|
9
9
|
|
10
10
|
def perform
|
11
11
|
@record = @resource.find(@params[:id])
|
12
|
-
|
13
|
-
if @resource.instance_method(:update_attributes!).arity == 1
|
14
|
-
@record.update_attributes!(resource_params)
|
15
|
-
else
|
16
|
-
@record.update_attributes!(resource_params, without_protection: true)
|
17
|
-
end
|
18
|
-
|
12
|
+
@record.update_attributes!(resource_params)
|
19
13
|
set_has_many_relationships
|
20
14
|
end
|
21
15
|
|
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.6
|
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-
|
11
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|