superform 0.4.1 → 0.4.2

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: 5daa39c7a090d229f2175c5214e69ae17c586738ff7b64c9c8c4d7745f52e08f
4
- data.tar.gz: 7d5b2fa66f1230f5f7efdbdc2a97fef97fb1ad5c069dc1331a685cfd4cee474b
3
+ metadata.gz: e95163f7344e0731cc859cf60a4bc1486bede4fe3cc88c86a0bd98497ecdf369
4
+ data.tar.gz: ebd8c4ea43a8958a4d6c70f4886aec84dd20a08a5b51563d18b2d65a4e2afff1
5
5
  SHA512:
6
- metadata.gz: f8b014e3dceb150d9e17e294794370a967f8bec8630a37219e20c3fbb3d4fbdac89dbd5a4beb91829f4c3e74155d607fee303e71600f16d6d5a8cbb3c100ebc1
7
- data.tar.gz: debd7cf51bdea3de105412ceece2bea44f074acb713eeffc786ca1f6c56e7323f54cec2b8a12b8b36172e3c3b4b74a071738d2978bee5e15a63bf36692f7dde7
6
+ metadata.gz: 4d03e967c4e018cb6902ad360719b5c98c4f7ab698a3dd9b6b61d3f3e4fde98231242085657ad9da20258335b34e52c5df7087d9ff27b503fa3a37b69a0c9eab
7
+ data.tar.gz: b859c82d78000486ab7b51070b22d4611f634513a5ba4f8f1f0c551e75ca3ced2549255858b1c56bc7fc48341ea35a84cc084c9be41af041840d45cb862fea6b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superform (0.4.1)
4
+ superform (0.4.2)
5
5
  phlex-rails (~> 1.0)
6
6
  zeitwerk (~> 2.6)
7
7
 
@@ -71,10 +71,11 @@ module Superform
71
71
  end
72
72
  end
73
73
 
74
- def initialize(model, action: nil, method: nil)
74
+ def initialize(model, action: nil, method: nil, **attributes)
75
75
  @model = model
76
76
  @action = action
77
77
  @method = method
78
+ @attributes = attributes
78
79
  @namespace = Namespace.root(model.model_name.param_key, object: model, field_class: self.class::Field)
79
80
  end
80
81
 
@@ -87,7 +88,7 @@ module Superform
87
88
  end
88
89
 
89
90
  def form_tag(&)
90
- form action: form_action, method: form_method, &
91
+ form action: form_action, method: form_method, **@attributes, &
91
92
  end
92
93
 
93
94
  def template(&block)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Superform
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler