forest_admin_datasource_customizer 1.18.1 → 2.0.0

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: '0869ac747054dbb27974a993a65cca2b780cbe5258fda5f6d9b3d88b7aab5260'
4
- data.tar.gz: a83a2d9b7a547ae7b716cd6cb765fa5b5dd28958aab423c4704b64dd439f1480
3
+ metadata.gz: 99861571fab21e188babeeae7244a3106510e8aee39a9bc3713d30f262df97d2
4
+ data.tar.gz: 6af3a7eb53f5d7b79aae3bd87c5f8925c9be6d259bb8f67c6b7a4d43e54f528a
5
5
  SHA512:
6
- metadata.gz: c615e11f6ec6483ec4af3684e2496abaa972949005ab6ba02a959ff3d0f44ffb2606ec4746a67b9b237bf9ce7183909e9c5d1815975a1813166c15a3f1d2f98a
7
- data.tar.gz: 3df50c1d1e56e52bb6bae9dc18d06a71a9c04d009a14aa445acd68bf827986e0033f788c3515b703ec7a26399c3827835a79f5ade57f9330758832d19e22007e
6
+ metadata.gz: 300ac4146409e2cb043abf8d40b60c67190a16c18e250c7878a8bcdcf5290d57c175389f91f57f431422c0947b1941f5c7d67750a02326f447712369f9d7326f
7
+ data.tar.gz: ea5cc31eb428bce00bdcd0826919fb50d4372afde061438a800332d8cd3ed8ed3930e0a432599c84e3ef9b9a4c2a97f92b879350e1866a9b5523d0a0936e5adb
@@ -61,7 +61,6 @@ module ForestAdminDatasourceCustomizer
61
61
  alias get_record_ids record_ids
62
62
  alias get_composite_record_ids composite_record_ids
63
63
  alias has_field_changed field_changed?
64
- alias form_value get_form_value
65
64
  end
66
65
  end
67
66
  end
@@ -20,9 +20,8 @@ module ForestAdminDatasourceCustomizer
20
20
  # form do
21
21
  # field :amount, type: :number, required: true
22
22
  # field :reason, type: :string,
23
- # # You can use either form_value (DSL-style) or get_form_value (legacy)
24
- # required: ->(ctx) { ctx.form_value(:amount).to_i > 1000 },
25
- # if_condition: ->(ctx) { ctx.form_value(:amount).to_i > 500 }
23
+ # required: ->(ctx) { ctx.get_form_value('amount').to_i > 1000 },
24
+ # if_condition: ->(ctx) { ctx.get_form_value('amount').to_i > 500 }
26
25
  # end
27
26
  class FormBuilder
28
27
  attr_reader :fields
@@ -1,3 +1,3 @@
1
1
  module ForestAdminDatasourceCustomizer
2
- VERSION = "1.18.1"
2
+ VERSION = "2.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_datasource_customizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.18.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu