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: f0f16b6b5334c088bb009afb4442903784602d0f20ff854faf425a20d88721cf
4
- data.tar.gz: 1a5152210b474568ca52428da05083a764c46c20054a45fa37c2441af4b9c9dd
3
+ metadata.gz: 2709633eef3b78bd00eb543b13a9341934a727a6f4814f13744315568ce21574
4
+ data.tar.gz: 0267ca9d4be038bf7d6ecd14c3a828c4f3752bf8be537ae85e78a1b87e6129e8
5
5
  SHA512:
6
- metadata.gz: de9f8be54aea5e876bf6a9bb84d6fa983be90f071ae7d354f5fa8bffc692d1214fca19a4619c20853e6e13637149aea33d1f17348e4a3961024b16a0faadcf90
7
- data.tar.gz: 228e81af969e6d018589e6a285e3e5dfc860ada3a96a9df796a506c85258127bf9ac39de000c93e938cfc595dd19b72e495d7b7370fc32bd43a5e2a9b5465bdb
6
+ metadata.gz: 5b31f9ebda4992c230a0eae2a8adad2f00dd260d34874da3a68bd565d628de8af01994f71390f49b55b9c4b500879092a47249f64215e5bb213b58f3fb6b95ef
7
+ data.tar.gz: 31f1bf4040e845af20501d0b34ecb9baf69c95e21a50d31fdbbbbcd4788634d815bc7009e86502c334192922ef4d4ca306d80598c06a58b4dbea22d817b87da9
@@ -53,7 +53,7 @@ module ForestLiana
53
53
  end
54
54
 
55
55
  def has_strong_parameter
56
- Rails::VERSION::MAJOR > 5 || @resource.instance_method(:update_attributes!).arity == 1
56
+ Rails::VERSION::MAJOR > 5 || @resource.instance_method(:update!).arity == 1
57
57
  end
58
58
  end
59
59
  end
@@ -14,9 +14,9 @@ module ForestLiana
14
14
  @record = @resource.find(@params[:id])
15
15
 
16
16
  if has_strong_parameter
17
- @record.update_attributes(resource_params)
17
+ @record.update(resource_params)
18
18
  else
19
- @record.update_attributes(resource_params, without_protection: true)
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(:update_attributes!).arity == 1
36
+ Rails::VERSION::MAJOR > 5 || @resource.instance_method(:update!).arity == 1
37
37
  end
38
38
  end
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "5.4.2"
2
+ VERSION = "5.4.3"
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: 5.4.2
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-27 00:00:00.000000000 Z
11
+ date: 2021-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails