hyperactiveform 0.2.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/CHANGELOG.md +7 -0
- data/README.md +10 -0
- data/docs/FormGenerator.html +193 -0
- data/docs/HyperActiveForm/Base.html +125 -41
- data/docs/HyperActiveForm/CancelFormSubmit.html +1 -1
- data/docs/HyperActiveForm/FormDidNotSubmitError.html +1 -1
- data/docs/HyperActiveForm/Generators/InstallGenerator.html +6 -6
- data/docs/HyperActiveForm/Generators.html +2 -2
- data/docs/HyperActiveForm.html +3 -3
- data/docs/Rspec/Generators/FormGenerator.html +193 -0
- data/docs/Rspec/Generators.html +115 -0
- data/docs/Rspec.html +115 -0
- data/docs/TestUnit/Generators/FormGenerator.html +193 -0
- data/docs/TestUnit/Generators.html +115 -0
- data/docs/TestUnit.html +115 -0
- data/docs/_index.html +63 -1
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +40 -2
- data/docs/index.html +40 -2
- data/docs/method_list.html +32 -0
- data/docs/top-level-namespace.html +4 -2
- data/lib/generators/form/form_generator.rb +9 -0
- data/lib/generators/form/templates/form.rb +2 -0
- data/lib/{hyper_active_form/generators.rb → generators/hyper_active_form/install/install_generator.rb} +0 -2
- data/lib/generators/rspec/form_generator.rb +11 -0
- data/lib/generators/rspec/templates/form_spec.rb +5 -0
- data/lib/generators/test_unit/form_generator.rb +11 -0
- data/lib/generators/test_unit/templates/form_test.rb +7 -0
- data/lib/hyper_active_form/base.rb +5 -0
- data/lib/hyper_active_form/version.rb +1 -1
- data/lib/hyper_active_form.rb +0 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62118504fe876576d66734af5cae70677e2d33e816bb89f68786f9701436b5a5
|
4
|
+
data.tar.gz: 6ec327afc004bcc5a08b5517bebdf395b4766fdfaef0320c98a4d93927fcc97c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e0dccf251149cc522518b09a8620923a589ea707b74a1479aa53246c0317d24d3c9934a7be5bfba337ad2d314659286a2731f5f1a35cad5bad635f69591332d
|
7
|
+
data.tar.gz: bee95408e1a288a9004c1ed878a21118c93cd2c260bfc21481c1a29527a3b6499c8fb9fb7403e5c7f2da2fae855d6702d13dce68768ac762530cdd0772d10bf3
|
data/.DS_Store
ADDED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
## [0.4.0] - 2025-01-13
|
4
|
+
- Add `assigned_attribute_names` method to get the list of attributes that have been assigned during the last call to `assign_form_attributes` or `submit`.
|
5
|
+
This is useful in a context where you want to know which attributes have been passed to the form and only act on them rather than the whole attributes hash that might be partly empty (in API calls for example)
|
6
|
+
|
7
|
+
## [0.3.0] - 2024-12-22
|
8
|
+
- Add generators (`rails generate form foo`) ([#2](https://github.com/Intrepidd/hyperactiveform/pull/2) by [@tchiadeu](https://github.com/tchiadeu))
|
9
|
+
|
3
10
|
## [0.2.0] - 2024-12-14
|
4
11
|
- Add callbacks for `assign_form_attributes` and `submit`
|
5
12
|
- Change behavior of `assign_form_attributes`/`submit` to use the default value or nil if no value is provided, rather than keeping the value from `setup`
|
data/README.md
CHANGED
@@ -26,6 +26,16 @@ Run the install generator:
|
|
26
26
|
|
27
27
|
this will create an `ApplicationForm` class in your app/forms directory. You can use it as a base class for your form objects.
|
28
28
|
|
29
|
+
## Generators
|
30
|
+
|
31
|
+
You can [generate](https://guides.rubyonrails.org/configuring.html#configuring-generators) a form and its tests with the following command:
|
32
|
+
|
33
|
+
```
|
34
|
+
$ rails generate form FooBar
|
35
|
+
```
|
36
|
+
|
37
|
+
This will create the `FooBarForm`
|
38
|
+
|
29
39
|
## Usage
|
30
40
|
|
31
41
|
Here is an example of an `HyperActiveForm` form object:
|
@@ -0,0 +1,193 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Class: FormGenerator
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.37
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" />
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
pathId = "FormGenerator";
|
19
|
+
relpath = '';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="nav_wrap">
|
31
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
|
+
<div id="resizer"></div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="main" tabindex="-1">
|
36
|
+
<div id="header">
|
37
|
+
<div id="menu">
|
38
|
+
|
39
|
+
<a href="_index.html">Index (F)</a> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">FormGenerator</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="class_list.html">
|
50
|
+
|
51
|
+
<svg width="24" height="24">
|
52
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
+
</svg>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Class: FormGenerator
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">Rails::Generators::NamedBase</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">Rails::Generators::NamedBase</li>
|
78
|
+
|
79
|
+
<li class="next">FormGenerator</li>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
83
|
+
|
84
|
+
</dd>
|
85
|
+
</dl>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<dl>
|
98
|
+
<dt>Defined in:</dt>
|
99
|
+
<dd>lib/generators/form/form_generator.rb</dd>
|
100
|
+
</dl>
|
101
|
+
|
102
|
+
</div>
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
<h2>
|
113
|
+
Instance Method Summary
|
114
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
115
|
+
</h2>
|
116
|
+
|
117
|
+
<ul class="summary">
|
118
|
+
|
119
|
+
<li class="public ">
|
120
|
+
<span class="summary_signature">
|
121
|
+
|
122
|
+
<a href="#create_application_form-instance_method" title="#create_application_form (instance method)">#<strong>create_application_form</strong> ⇒ Object </a>
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
</span>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
137
|
+
|
138
|
+
</li>
|
139
|
+
|
140
|
+
|
141
|
+
</ul>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
<div id="instance_method_details" class="method_details_list">
|
148
|
+
<h2>Instance Method Details</h2>
|
149
|
+
|
150
|
+
|
151
|
+
<div class="method_details first">
|
152
|
+
<h3 class="signature first" id="create_application_form-instance_method">
|
153
|
+
|
154
|
+
#<strong>create_application_form</strong> ⇒ <tt>Object</tt>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
</h3><table class="source_code">
|
161
|
+
<tr>
|
162
|
+
<td>
|
163
|
+
<pre class="lines">
|
164
|
+
|
165
|
+
|
166
|
+
4
|
167
|
+
5
|
168
|
+
6</pre>
|
169
|
+
</td>
|
170
|
+
<td>
|
171
|
+
<pre class="code"><span class="info file"># File 'lib/generators/form/form_generator.rb', line 4</span>
|
172
|
+
|
173
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_create_application_form'>create_application_form</span>
|
174
|
+
<span class='id identifier rubyid_template'>template</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>form.rb</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>app/forms</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_class_path'>class_path</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_file_name'>file_name</span><span class='embexpr_end'>}</span><span class='tstring_content'>_form.rb</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
175
|
+
<span class='kw'>end</span></pre>
|
176
|
+
</td>
|
177
|
+
</tr>
|
178
|
+
</table>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
</div>
|
182
|
+
|
183
|
+
</div>
|
184
|
+
|
185
|
+
<div id="footer">
|
186
|
+
Generated on Mon Jan 13 17:26:04 2025 by
|
187
|
+
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
188
|
+
0.9.37 (ruby-3.3.1).
|
189
|
+
</div>
|
190
|
+
|
191
|
+
</div>
|
192
|
+
</body>
|
193
|
+
</html>
|
@@ -126,6 +126,40 @@
|
|
126
126
|
|
127
127
|
|
128
128
|
|
129
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
130
|
+
<ul class="summary">
|
131
|
+
|
132
|
+
<li class="public ">
|
133
|
+
<span class="summary_signature">
|
134
|
+
|
135
|
+
<a href="#assigned_attribute_names-instance_method" title="#assigned_attribute_names (instance method)">#<strong>assigned_attribute_names</strong> ⇒ Object </a>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
</span>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<span class="note title readonly">readonly</span>
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
<span class="summary_desc"><div class='inline'>
|
155
|
+
<p>The list of attribute names that have been passed to the form during the last call to ‘assign_form_attributes` or `submit`.</p>
|
156
|
+
</div></span>
|
157
|
+
|
158
|
+
</li>
|
159
|
+
|
160
|
+
|
161
|
+
</ul>
|
162
|
+
|
129
163
|
|
130
164
|
|
131
165
|
|
@@ -372,13 +406,13 @@
|
|
372
406
|
<pre class="lines">
|
373
407
|
|
374
408
|
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
409
|
+
36
|
410
|
+
37
|
411
|
+
38
|
412
|
+
39</pre>
|
379
413
|
</td>
|
380
414
|
<td>
|
381
|
-
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line
|
415
|
+
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line 36</span>
|
382
416
|
|
383
417
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>*</span><span class='comma'>,</span> <span class='op'>**</span><span class='rparen'>)</span>
|
384
418
|
<span class='kw'>super</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
@@ -391,6 +425,54 @@
|
|
391
425
|
|
392
426
|
</div>
|
393
427
|
|
428
|
+
<div id="instance_attr_details" class="attr_details">
|
429
|
+
<h2>Instance Attribute Details</h2>
|
430
|
+
|
431
|
+
|
432
|
+
<span id=""></span>
|
433
|
+
<div class="method_details first">
|
434
|
+
<h3 class="signature first" id="assigned_attribute_names-instance_method">
|
435
|
+
|
436
|
+
#<strong>assigned_attribute_names</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
</h3><div class="docstring">
|
443
|
+
<div class="discussion">
|
444
|
+
|
445
|
+
<p>The list of attribute names that have been passed to the form during the last call to ‘assign_form_attributes` or `submit`</p>
|
446
|
+
|
447
|
+
|
448
|
+
</div>
|
449
|
+
</div>
|
450
|
+
<div class="tags">
|
451
|
+
|
452
|
+
|
453
|
+
</div><table class="source_code">
|
454
|
+
<tr>
|
455
|
+
<td>
|
456
|
+
<pre class="lines">
|
457
|
+
|
458
|
+
|
459
|
+
24
|
460
|
+
25
|
461
|
+
26</pre>
|
462
|
+
</td>
|
463
|
+
<td>
|
464
|
+
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line 24</span>
|
465
|
+
|
466
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_assigned_attribute_names'>assigned_attribute_names</span>
|
467
|
+
<span class='ivar'>@assigned_attribute_names</span>
|
468
|
+
<span class='kw'>end</span></pre>
|
469
|
+
</td>
|
470
|
+
</tr>
|
471
|
+
</table>
|
472
|
+
</div>
|
473
|
+
|
474
|
+
</div>
|
475
|
+
|
394
476
|
|
395
477
|
<div id="class_method_details" class="method_details_list">
|
396
478
|
<h2>Class Method Details</h2>
|
@@ -458,13 +540,13 @@
|
|
458
540
|
<pre class="lines">
|
459
541
|
|
460
542
|
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
543
|
+
31
|
544
|
+
32
|
545
|
+
33
|
546
|
+
34</pre>
|
465
547
|
</td>
|
466
548
|
<td>
|
467
|
-
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line
|
549
|
+
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line 31</span>
|
468
550
|
|
469
551
|
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_proxy_for'>proxy_for</span><span class='lparen'>(</span><span class='id identifier rubyid_klass'>klass</span><span class='comma'>,</span> <span class='id identifier rubyid_object'>object</span><span class='rparen'>)</span>
|
470
552
|
<span class='id identifier rubyid_delegate'>delegate</span> <span class='symbol'>:new_record?</span><span class='comma'>,</span> <span class='symbol'>:persisted?</span><span class='comma'>,</span> <span class='symbol'>:id</span><span class='comma'>,</span> <span class='label'>to:</span> <span class='id identifier rubyid_object'>object</span>
|
@@ -527,16 +609,16 @@
|
|
527
609
|
<pre class="lines">
|
528
610
|
|
529
611
|
|
530
|
-
84
|
531
|
-
85
|
532
|
-
86
|
533
|
-
87
|
534
|
-
88
|
535
612
|
89
|
536
|
-
90
|
613
|
+
90
|
614
|
+
91
|
615
|
+
92
|
616
|
+
93
|
617
|
+
94
|
618
|
+
95</pre>
|
537
619
|
</td>
|
538
620
|
<td>
|
539
|
-
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line
|
621
|
+
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line 89</span>
|
540
622
|
|
541
623
|
<span class='kw'>def</span> <span class='id identifier rubyid_add_errors_from'>add_errors_from</span><span class='lparen'>(</span><span class='id identifier rubyid_model'>model</span><span class='rparen'>)</span>
|
542
624
|
<span class='id identifier rubyid_model'>model</span><span class='period'>.</span><span class='id identifier rubyid_errors'>errors</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_error'>error</span><span class='op'>|</span>
|
@@ -596,18 +678,19 @@
|
|
596
678
|
<pre class="lines">
|
597
679
|
|
598
680
|
|
599
|
-
49
|
600
|
-
50
|
601
|
-
51
|
602
|
-
52
|
603
681
|
53
|
604
682
|
54
|
605
683
|
55
|
606
684
|
56
|
607
|
-
57
|
685
|
+
57
|
686
|
+
58
|
687
|
+
59
|
688
|
+
60
|
689
|
+
61
|
690
|
+
62</pre>
|
608
691
|
</td>
|
609
692
|
<td>
|
610
|
-
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line
|
693
|
+
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line 53</span>
|
611
694
|
|
612
695
|
<span class='kw'>def</span> <span class='id identifier rubyid_assign_form_attributes'>assign_form_attributes</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
613
696
|
<span class='id identifier rubyid_run_callbacks'>run_callbacks</span> <span class='symbol'>:assign_form_attributes</span> <span class='kw'>do</span>
|
@@ -616,6 +699,7 @@
|
|
616
699
|
<span class='id identifier rubyid_default_value'>default_value</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid__default_attributes'>_default_attributes</span><span class='lbracket'>[</span><span class='id identifier rubyid_attribute'>attribute</span><span class='rbracket'>]</span><span class='op'>&.</span><span class='id identifier rubyid_value_before_type_cast'>value_before_type_cast</span>
|
617
700
|
<span class='id identifier rubyid_public_send'>public_send</span><span class='lparen'>(</span><span class='symbol'>:"#{</span><span class='id identifier rubyid_attribute'>attribute</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='op'>&.</span><span class='id identifier rubyid_dig'>dig</span><span class='lparen'>(</span><span class='id identifier rubyid_attribute'>attribute</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_default_value'>default_value</span><span class='rparen'>)</span>
|
618
701
|
<span class='kw'>end</span>
|
702
|
+
<span class='ivar'>@assigned_attribute_names</span> <span class='op'>=</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_slice'>slice</span><span class='lparen'>(</span><span class='op'>*</span><span class='id identifier rubyid_attribute_names'>attribute_names</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_keys'>keys</span>
|
619
703
|
<span class='kw'>end</span>
|
620
704
|
<span class='kw'>end</span></pre>
|
621
705
|
</td>
|
@@ -660,12 +744,12 @@
|
|
660
744
|
<pre class="lines">
|
661
745
|
|
662
746
|
|
663
|
-
|
664
|
-
|
665
|
-
|
747
|
+
43
|
748
|
+
44
|
749
|
+
45</pre>
|
666
750
|
</td>
|
667
751
|
<td>
|
668
|
-
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line
|
752
|
+
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line 43</span>
|
669
753
|
|
670
754
|
<span class='kw'>def</span> <span class='id identifier rubyid_perform'>perform</span>
|
671
755
|
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>NotImplementedError</span>
|
@@ -690,10 +774,10 @@
|
|
690
774
|
<pre class="lines">
|
691
775
|
|
692
776
|
|
693
|
-
|
777
|
+
41</pre>
|
694
778
|
</td>
|
695
779
|
<td>
|
696
|
-
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line
|
780
|
+
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line 41</span>
|
697
781
|
|
698
782
|
<span class='kw'>def</span> <span class='id identifier rubyid_setup'>setup</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
|
699
783
|
</td>
|
@@ -765,17 +849,17 @@
|
|
765
849
|
<pre class="lines">
|
766
850
|
|
767
851
|
|
768
|
-
64
|
769
|
-
65
|
770
|
-
66
|
771
|
-
67
|
772
|
-
68
|
773
852
|
69
|
774
853
|
70
|
775
|
-
71
|
854
|
+
71
|
855
|
+
72
|
856
|
+
73
|
857
|
+
74
|
858
|
+
75
|
859
|
+
76</pre>
|
776
860
|
</td>
|
777
861
|
<td>
|
778
|
-
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line
|
862
|
+
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line 69</span>
|
779
863
|
|
780
864
|
<span class='kw'>def</span> <span class='id identifier rubyid_submit'>submit</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
781
865
|
<span class='id identifier rubyid_run_callbacks'>run_callbacks</span> <span class='symbol'>:submit</span> <span class='kw'>do</span>
|
@@ -854,12 +938,12 @@
|
|
854
938
|
<pre class="lines">
|
855
939
|
|
856
940
|
|
857
|
-
|
858
|
-
|
859
|
-
|
941
|
+
82
|
942
|
+
83
|
943
|
+
84</pre>
|
860
944
|
</td>
|
861
945
|
<td>
|
862
|
-
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line
|
946
|
+
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/base.rb', line 82</span>
|
863
947
|
|
864
948
|
<span class='kw'>def</span> <span class='id identifier rubyid_submit!'>submit!</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
|
865
949
|
<span class='id identifier rubyid_submit'>submit</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_raise'>raise</span><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../HyperActiveForm.html" title="HyperActiveForm (module)">HyperActiveForm</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="FormDidNotSubmitError.html" title="HyperActiveForm::FormDidNotSubmitError (class)">FormDidNotSubmitError</a></span></span><span class='rparen'>)</span>
|
@@ -874,7 +958,7 @@
|
|
874
958
|
</div>
|
875
959
|
|
876
960
|
<div id="footer">
|
877
|
-
Generated on
|
961
|
+
Generated on Mon Jan 13 17:26:04 2025 by
|
878
962
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
879
963
|
0.9.37 (ruby-3.3.1).
|
880
964
|
</div>
|
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Mon Jan 13 17:26:04 2025 by
|
118
118
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
119
|
0.9.37 (ruby-3.3.1).
|
120
120
|
</div>
|
@@ -114,7 +114,7 @@
|
|
114
114
|
</div>
|
115
115
|
|
116
116
|
<div id="footer">
|
117
|
-
Generated on
|
117
|
+
Generated on Mon Jan 13 17:26:04 2025 by
|
118
118
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
119
119
|
0.9.37 (ruby-3.3.1).
|
120
120
|
</div>
|
@@ -96,7 +96,7 @@
|
|
96
96
|
|
97
97
|
<dl>
|
98
98
|
<dt>Defined in:</dt>
|
99
|
-
<dd>lib/hyper_active_form/
|
99
|
+
<dd>lib/generators/hyper_active_form/install/install_generator.rb</dd>
|
100
100
|
</dl>
|
101
101
|
|
102
102
|
</div>
|
@@ -163,15 +163,15 @@
|
|
163
163
|
<pre class="lines">
|
164
164
|
|
165
165
|
|
166
|
+
4
|
167
|
+
5
|
166
168
|
6
|
167
169
|
7
|
168
170
|
8
|
169
|
-
9
|
170
|
-
10
|
171
|
-
11</pre>
|
171
|
+
9</pre>
|
172
172
|
</td>
|
173
173
|
<td>
|
174
|
-
<pre class="code"><span class="info file"># File 'lib/hyper_active_form/
|
174
|
+
<pre class="code"><span class="info file"># File 'lib/generators/hyper_active_form/install/install_generator.rb', line 4</span>
|
175
175
|
|
176
176
|
<span class='kw'>def</span> <span class='id identifier rubyid_create_application_form'>create_application_form</span>
|
177
177
|
<span class='id identifier rubyid_create_file'>create_file</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>app/forms/application_form.rb</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='heredoc_beg'><<~RUBY</span>
|
@@ -189,7 +189,7 @@
|
|
189
189
|
</div>
|
190
190
|
|
191
191
|
<div id="footer">
|
192
|
-
Generated on
|
192
|
+
Generated on Mon Jan 13 17:26:04 2025 by
|
193
193
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
194
194
|
0.9.37 (ruby-3.3.1).
|
195
195
|
</div>
|
@@ -78,7 +78,7 @@
|
|
78
78
|
|
79
79
|
<dl>
|
80
80
|
<dt>Defined in:</dt>
|
81
|
-
<dd>lib/hyper_active_form/
|
81
|
+
<dd>lib/generators/hyper_active_form/install/install_generator.rb</dd>
|
82
82
|
</dl>
|
83
83
|
|
84
84
|
</div>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on
|
108
|
+
Generated on Mon Jan 13 17:26:04 2025 by
|
109
109
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
110
|
0.9.37 (ruby-3.3.1).
|
111
111
|
</div>
|
data/docs/HyperActiveForm.html
CHANGED
@@ -79,7 +79,7 @@
|
|
79
79
|
<dl>
|
80
80
|
<dt>Defined in:</dt>
|
81
81
|
<dd>lib/hyper_active_form.rb<span class="defines">,<br />
|
82
|
-
lib/hyper_active_form/base.rb,<br /> lib/hyper_active_form/version.rb,<br /> lib/hyper_active_form/
|
82
|
+
lib/hyper_active_form/base.rb,<br /> lib/hyper_active_form/version.rb,<br /> lib/generators/hyper_active_form/install/install_generator.rb</span>
|
83
83
|
</dd>
|
84
84
|
</dl>
|
85
85
|
|
@@ -109,7 +109,7 @@
|
|
109
109
|
<dt id="VERSION-constant" class="">VERSION =
|
110
110
|
|
111
111
|
</dt>
|
112
|
-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.
|
112
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>0.3.0</span><span class='tstring_end'>"</span></span></pre></dd>
|
113
113
|
|
114
114
|
</dl>
|
115
115
|
|
@@ -125,7 +125,7 @@
|
|
125
125
|
</div>
|
126
126
|
|
127
127
|
<div id="footer">
|
128
|
-
Generated on
|
128
|
+
Generated on Mon Jan 13 17:26:04 2025 by
|
129
129
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
130
|
0.9.37 (ruby-3.3.1).
|
131
131
|
</div>
|