reform-rails 0.2.4 → 0.2.5

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
  SHA256:
3
- metadata.gz: 517a3912b77e3e81b2a86ef61dfb1e3c4d552258de8f6630fb4144551447b858
4
- data.tar.gz: e30f051b92acde0a70a27d82bffd53c166a1cb9a2253c41101c126e741d08bdc
3
+ metadata.gz: 9d136641745a9b830812afa8cb959e3dfd016166bd08100411481ca3215f3a87
4
+ data.tar.gz: d3dcb1ddb5c7d77305bd42382068e8b9fb1f5f6556682529ad742001126394cc
5
5
  SHA512:
6
- metadata.gz: 0e35493c33bb127e2fef2be4379fff16c45f17e25718c4d39956176f08619bf6cfc8dd2019afb9fb98ed39ba12c1f52986b447e952be46671da62bfe60ae4daa
7
- data.tar.gz: 9583ec0b967f22a1611c1d808a59d9c51234cf1717bbef1c81c140eececb59e39a880547d8f7bc20634a89d6debaa750827bc3db6645fd525db0eecfbdacce58
6
+ metadata.gz: 98612de254f296d0000e8e942d82c7f249d5b557c97d42fdbaebec433aee338427e00df42be8f3ab106c147465f4ee9afdeac4be593b270bdb6d86e840e04c28
7
+ data.tar.gz: 53e08abfcfe1a97bc91191e05159cfcb51f0f2d0d831bf3ed7ef4b7cdee90ebcf4f36d38471bd10681441f4e4762b9454706e81cd2b87d1186ef6619b53aa095
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.2.5
2
+
3
+ * Fix: Delegating from form object causes ArgumentError with 0.2.4 (https://github.com/trailblazer/reform-rails/issues/99)
4
+
1
5
  # 0.2.4
2
6
 
3
7
  * Fix keyword argument warning in `method_missing` (https://github.com/trailblazer/reform-rails/pull/97)
@@ -4,8 +4,7 @@ module Reform::Form::ActiveModel
4
4
  extend ClassMethods
5
5
  register_feature ActiveModel
6
6
 
7
- extend Forwardable
8
- def_delegators :model, :persisted?, :to_key, :to_param, :id
7
+ delegate :persisted?, :to_key, :to_param, :id, to: :model
9
8
 
10
9
  def to_model # this is called somewhere in FormBuilder and ActionController.
11
10
  self
@@ -1,5 +1,5 @@
1
1
  module Reform
2
2
  module Rails
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reform-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-08 00:00:00.000000000 Z
11
+ date: 2023-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reform