forest_liana 5.4.2 → 5.4.3
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2709633eef3b78bd00eb543b13a9341934a727a6f4814f13744315568ce21574
|
|
4
|
+
data.tar.gz: 0267ca9d4be038bf7d6ecd14c3a828c4f3752bf8be537ae85e78a1b87e6129e8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b31f9ebda4992c230a0eae2a8adad2f00dd260d34874da3a68bd565d628de8af01994f71390f49b55b9c4b500879092a47249f64215e5bb213b58f3fb6b95ef
|
|
7
|
+
data.tar.gz: 31f1bf4040e845af20501d0b34ecb9baf69c95e21a50d31fdbbbbcd4788634d815bc7009e86502c334192922ef4d4ca306d80598c06a58b4dbea22d817b87da9
|
|
@@ -14,9 +14,9 @@ module ForestLiana
|
|
|
14
14
|
@record = @resource.find(@params[:id])
|
|
15
15
|
|
|
16
16
|
if has_strong_parameter
|
|
17
|
-
@record.
|
|
17
|
+
@record.update(resource_params)
|
|
18
18
|
else
|
|
19
|
-
@record.
|
|
19
|
+
@record.update(resource_params, without_protection: true)
|
|
20
20
|
end
|
|
21
21
|
rescue ActiveRecord::StatementInvalid => exception
|
|
22
22
|
# NOTICE: SQL request cannot be executed properly
|
|
@@ -33,7 +33,7 @@ module ForestLiana
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def has_strong_parameter
|
|
36
|
-
Rails::VERSION::MAJOR > 5 || @resource.instance_method(:
|
|
36
|
+
Rails::VERSION::MAJOR > 5 || @resource.instance_method(:update!).arity == 1
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
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: 5.4.
|
|
4
|
+
version: 5.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sandro Munda
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-01-
|
|
11
|
+
date: 2021-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|