compony 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +10 -0
- data/VERSION +1 -1
- data/compony.gemspec +3 -3
- data/doc/ComponentGenerator.html +1 -1
- data/doc/Components.html +1 -1
- data/doc/ComponentsGenerator.html +1 -1
- data/doc/Compony/Component.html +139 -44
- data/doc/Compony/ComponentMixins/Default/Labelling.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html +1 -1
- data/doc/Compony/ComponentMixins/Default/Standalone.html +1 -1
- data/doc/Compony/ComponentMixins/Default.html +1 -1
- data/doc/Compony/ComponentMixins/Resourceful.html +1 -1
- data/doc/Compony/ComponentMixins.html +1 -1
- data/doc/Compony/Components/Button.html +2 -2
- data/doc/Compony/Components/Destroy.html +14 -14
- data/doc/Compony/Components/Edit.html +2 -2
- data/doc/Compony/Components/Form.html +86 -86
- data/doc/Compony/Components/New.html +14 -14
- data/doc/Compony/Components/WithForm.html +2 -2
- data/doc/Compony/Components.html +1 -1
- data/doc/Compony/ControllerMixin.html +1 -1
- data/doc/Compony/Engine.html +1 -1
- data/doc/Compony/MethodAccessibleHash.html +1 -1
- data/doc/Compony/ModelFields/Anchormodel.html +1 -1
- data/doc/Compony/ModelFields/Association.html +1 -1
- data/doc/Compony/ModelFields/Attachment.html +1 -1
- data/doc/Compony/ModelFields/Base.html +1 -1
- data/doc/Compony/ModelFields/Boolean.html +1 -1
- data/doc/Compony/ModelFields/Color.html +1 -1
- data/doc/Compony/ModelFields/Currency.html +1 -1
- data/doc/Compony/ModelFields/Date.html +1 -1
- data/doc/Compony/ModelFields/Datetime.html +1 -1
- data/doc/Compony/ModelFields/Decimal.html +1 -1
- data/doc/Compony/ModelFields/Email.html +1 -1
- data/doc/Compony/ModelFields/Float.html +1 -1
- data/doc/Compony/ModelFields/Integer.html +1 -1
- data/doc/Compony/ModelFields/Percentage.html +1 -1
- data/doc/Compony/ModelFields/Phone.html +1 -1
- data/doc/Compony/ModelFields/RichText.html +1 -1
- data/doc/Compony/ModelFields/String.html +1 -1
- data/doc/Compony/ModelFields/Text.html +1 -1
- data/doc/Compony/ModelFields/Time.html +1 -1
- data/doc/Compony/ModelFields/Url.html +1 -1
- data/doc/Compony/ModelFields.html +1 -1
- data/doc/Compony/ModelMixin.html +1 -1
- data/doc/Compony/NaturalOrdering.html +14 -6
- data/doc/Compony/RequestContext.html +16 -4
- data/doc/Compony/Version.html +1 -1
- data/doc/Compony/ViewHelpers.html +1 -1
- data/doc/Compony.html +1 -1
- data/doc/ComponyController.html +1 -1
- data/doc/_index.html +1 -1
- data/doc/file.README.html +10 -1
- data/doc/index.html +10 -1
- data/doc/method_list.html +69 -61
- data/doc/top-level-namespace.html +1 -1
- data/lib/compony/component.rb +14 -2
- data/lib/compony/components/destroy.rb +9 -1
- data/lib/compony/components/form.rb +16 -5
- data/lib/compony/components/new.rb +1 -0
- data/lib/compony/natural_ordering.rb +6 -2
- data/lib/compony/request_context.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa5e387b3fb9934fdd3f2ca05845c1111c56fe914c5958be155369f055dd2c6e
|
4
|
+
data.tar.gz: eee2133e1c90eee2ef1751a047ece98c6516690595453534d2d84f7be6ab92a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21419bf366a0aa334ff4a66bd20a4f52e47d0d3e3802bcd6755d7214a1c3d11328c2e3728f5e5be4249fd4f506db24ccaab1e4e59d870023a74a305d40d01ba3
|
7
|
+
data.tar.gz: 8f4ccd7d2f40ac2b45367f6090ba52c13c9f4e8c49b1e3df1c0f38aeb216e2d3a786714ae5f843e68e23dd888c1143aecddf7453a65fc0244bb1f28cd0d2282e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# 0.3.1
|
2
|
+
|
3
|
+
- In `NaturalOrdering`, tolerate omitting payload only if it's an override
|
4
|
+
- In `content`, tolerate omitting block if it's an override
|
5
|
+
- Instanciate a fresh ActionView `output_buffer` when rendering nested content to prevent double render errors
|
6
|
+
- Reshape `Destroy` and `Form` components to provide more fine-grained content blocks that can be selectively overridden
|
7
|
+
- Implement `remove_content` which allows removing a previously defined content block (useful for usage in subclasses)
|
8
|
+
|
1
9
|
# 0.3.0
|
2
10
|
|
3
11
|
- Internals:
|
data/README.md
CHANGED
@@ -513,6 +513,16 @@ The output is:
|
|
513
513
|
<div class="card card-body"><h1>Hello</h1><p>Welcome to my site.</p></div>
|
514
514
|
```
|
515
515
|
|
516
|
+
##### Removing content blocks
|
517
|
+
|
518
|
+
If a component's parent class defines a content block that is undesired in a subclass component, the content block can be removed as follows:
|
519
|
+
|
520
|
+
```ruby
|
521
|
+
setup do
|
522
|
+
remove_content :some_content_defined_in_parent # This component will now behave as if this content block was never declared in its parent.
|
523
|
+
end
|
524
|
+
```
|
525
|
+
|
516
526
|
#### Redirecting away / Intercepting rendering
|
517
527
|
|
518
528
|
Immediately before the `content` block(s) are evaluated, another chain of blocks is evaluated if present: `before_render`. If on of these blocks creates a reponse body in the Rails controller, the subsequent `before_render` blocks and all `content` blocks are skipped.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/compony.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# This file is auto-generated via: 'rake gemspec'.
|
3
3
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: compony 0.3.
|
5
|
+
# stub: compony 0.3.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "compony".freeze
|
9
|
-
s.version = "0.3.
|
9
|
+
s.version = "0.3.1".freeze
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Sandro Kalbermatter".freeze, "contributors".freeze]
|
14
|
-
s.date = "2024-05-
|
14
|
+
s.date = "2024-05-31"
|
15
15
|
s.files = [".gitignore".freeze, ".ruby-version".freeze, ".yardopts".freeze, "CHANGELOG.md".freeze, "Gemfile".freeze, "Gemfile.lock".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "TODO.md".freeze, "VERSION".freeze, "app/controllers/compony_controller.rb".freeze, "compony.gemspec".freeze, "config/locales/de.yml".freeze, "config/locales/en.yml".freeze, "config/locales/fr.yml".freeze, "config/routes.rb".freeze, "doc/ComponentGenerator.html".freeze, "doc/Components.html".freeze, "doc/ComponentsGenerator.html".freeze, "doc/Compony.html".freeze, "doc/Compony/Component.html".freeze, "doc/Compony/ComponentMixins.html".freeze, "doc/Compony/ComponentMixins/Default.html".freeze, "doc/Compony/ComponentMixins/Default/Labelling.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/ResourcefulVerbDsl.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/StandaloneDsl.html".freeze, "doc/Compony/ComponentMixins/Default/Standalone/VerbDsl.html".freeze, "doc/Compony/ComponentMixins/Resourceful.html".freeze, "doc/Compony/Components.html".freeze, "doc/Compony/Components/Button.html".freeze, "doc/Compony/Components/Destroy.html".freeze, "doc/Compony/Components/Edit.html".freeze, "doc/Compony/Components/Form.html".freeze, "doc/Compony/Components/New.html".freeze, "doc/Compony/Components/WithForm.html".freeze, "doc/Compony/ControllerMixin.html".freeze, "doc/Compony/Engine.html".freeze, "doc/Compony/MethodAccessibleHash.html".freeze, "doc/Compony/ModelFields.html".freeze, "doc/Compony/ModelFields/Anchormodel.html".freeze, "doc/Compony/ModelFields/Association.html".freeze, "doc/Compony/ModelFields/Attachment.html".freeze, "doc/Compony/ModelFields/Base.html".freeze, "doc/Compony/ModelFields/Boolean.html".freeze, "doc/Compony/ModelFields/Color.html".freeze, "doc/Compony/ModelFields/Currency.html".freeze, "doc/Compony/ModelFields/Date.html".freeze, "doc/Compony/ModelFields/Datetime.html".freeze, "doc/Compony/ModelFields/Decimal.html".freeze, "doc/Compony/ModelFields/Email.html".freeze, "doc/Compony/ModelFields/Float.html".freeze, "doc/Compony/ModelFields/Integer.html".freeze, "doc/Compony/ModelFields/Percentage.html".freeze, "doc/Compony/ModelFields/Phone.html".freeze, "doc/Compony/ModelFields/RichText.html".freeze, "doc/Compony/ModelFields/String.html".freeze, "doc/Compony/ModelFields/Text.html".freeze, "doc/Compony/ModelFields/Time.html".freeze, "doc/Compony/ModelFields/Url.html".freeze, "doc/Compony/ModelMixin.html".freeze, "doc/Compony/NaturalOrdering.html".freeze, "doc/Compony/RequestContext.html".freeze, "doc/Compony/Version.html".freeze, "doc/Compony/ViewHelpers.html".freeze, "doc/ComponyController.html".freeze, "doc/_index.html".freeze, "doc/class_list.html".freeze, "doc/css/common.css".freeze, "doc/css/full_list.css".freeze, "doc/css/style.css".freeze, "doc/file.README.html".freeze, "doc/file_list.html".freeze, "doc/frames.html".freeze, "doc/imgs/intro-example-destroy.png".freeze, "doc/imgs/intro-example-edit.png".freeze, "doc/imgs/intro-example-index.png".freeze, "doc/imgs/intro-example-new.png".freeze, "doc/imgs/intro-example-show.png".freeze, "doc/index.html".freeze, "doc/js/app.js".freeze, "doc/js/full_list.js".freeze, "doc/js/jquery.js".freeze, "doc/method_list.html".freeze, "doc/resourceful_lifecycle.graphml".freeze, "doc/resourceful_lifecycle.pdf".freeze, "doc/resourceful_lifecycle.png".freeze, "doc/top-level-namespace.html".freeze, "lib/compony.rb".freeze, "lib/compony/component.rb".freeze, "lib/compony/component_mixins/default/labelling.rb".freeze, "lib/compony/component_mixins/default/standalone.rb".freeze, "lib/compony/component_mixins/default/standalone/resourceful_verb_dsl.rb".freeze, "lib/compony/component_mixins/default/standalone/standalone_dsl.rb".freeze, "lib/compony/component_mixins/default/standalone/verb_dsl.rb".freeze, "lib/compony/component_mixins/resourceful.rb".freeze, "lib/compony/components/button.rb".freeze, "lib/compony/components/destroy.rb".freeze, "lib/compony/components/edit.rb".freeze, "lib/compony/components/form.rb".freeze, "lib/compony/components/new.rb".freeze, "lib/compony/components/with_form.rb".freeze, "lib/compony/controller_mixin.rb".freeze, "lib/compony/engine.rb".freeze, "lib/compony/method_accessible_hash.rb".freeze, "lib/compony/model_fields/anchormodel.rb".freeze, "lib/compony/model_fields/association.rb".freeze, "lib/compony/model_fields/attachment.rb".freeze, "lib/compony/model_fields/base.rb".freeze, "lib/compony/model_fields/boolean.rb".freeze, "lib/compony/model_fields/color.rb".freeze, "lib/compony/model_fields/currency.rb".freeze, "lib/compony/model_fields/date.rb".freeze, "lib/compony/model_fields/datetime.rb".freeze, "lib/compony/model_fields/decimal.rb".freeze, "lib/compony/model_fields/email.rb".freeze, "lib/compony/model_fields/float.rb".freeze, "lib/compony/model_fields/integer.rb".freeze, "lib/compony/model_fields/percentage.rb".freeze, "lib/compony/model_fields/phone.rb".freeze, "lib/compony/model_fields/rich_text.rb".freeze, "lib/compony/model_fields/string.rb".freeze, "lib/compony/model_fields/text.rb".freeze, "lib/compony/model_fields/time.rb".freeze, "lib/compony/model_fields/url.rb".freeze, "lib/compony/model_mixin.rb".freeze, "lib/compony/natural_ordering.rb".freeze, "lib/compony/request_context.rb".freeze, "lib/compony/version.rb".freeze, "lib/compony/view_helpers.rb".freeze, "lib/generators/component/USAGE".freeze, "lib/generators/component/component_generator.rb".freeze, "lib/generators/component/templates/component.rb.erb".freeze, "lib/generators/component/templates/destroy.rb.erb".freeze, "lib/generators/component/templates/edit.rb.erb".freeze, "lib/generators/component/templates/form.rb.erb".freeze, "lib/generators/component/templates/new.rb.erb".freeze, "lib/generators/components/USAGE".freeze, "lib/generators/components/components_generator.rb".freeze, "logo.svg".freeze]
|
16
16
|
s.required_ruby_version = Gem::Requirement.new(">= 3.0.0".freeze)
|
17
17
|
s.rubygems_version = "3.5.9".freeze
|
data/doc/ComponentGenerator.html
CHANGED
@@ -221,7 +221,7 @@
|
|
221
221
|
</div>
|
222
222
|
|
223
223
|
<div id="footer">
|
224
|
-
Generated on
|
224
|
+
Generated on Fri May 31 14:28:30 2024 by
|
225
225
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
226
226
|
0.9.34 (ruby-3.2.2).
|
227
227
|
</div>
|
data/doc/Components.html
CHANGED
@@ -193,7 +193,7 @@
|
|
193
193
|
</div>
|
194
194
|
|
195
195
|
<div id="footer">
|
196
|
-
Generated on
|
196
|
+
Generated on Fri May 31 14:28:30 2024 by
|
197
197
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
198
198
|
0.9.34 (ruby-3.2.2).
|
199
199
|
</div>
|
data/doc/Compony/Component.html
CHANGED
@@ -557,6 +557,30 @@
|
|
557
557
|
<p>Returns a hash for the path.</p>
|
558
558
|
</div></span>
|
559
559
|
|
560
|
+
</li>
|
561
|
+
|
562
|
+
|
563
|
+
<li class="public ">
|
564
|
+
<span class="summary_signature">
|
565
|
+
|
566
|
+
<a href="#remove_content-instance_method" title="#remove_content (instance method)">#<strong>remove_content</strong>(name) ⇒ Object </a>
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
</span>
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
|
580
|
+
<span class="summary_desc"><div class='inline'>
|
581
|
+
<p>DSL method Removes a content block.</p>
|
582
|
+
</div></span>
|
583
|
+
|
560
584
|
</li>
|
561
585
|
|
562
586
|
|
@@ -1023,12 +1047,12 @@
|
|
1023
1047
|
<pre class="lines">
|
1024
1048
|
|
1025
1049
|
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1050
|
+
187
|
1051
|
+
188
|
1052
|
+
189</pre>
|
1029
1053
|
</td>
|
1030
1054
|
<td>
|
1031
|
-
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line
|
1055
|
+
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 187</span>
|
1032
1056
|
|
1033
1057
|
<span class='kw'>def</span> <span class='id identifier rubyid_action'>action</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='comma'>,</span> <span class='label'>before:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1034
1058
|
<span class='ivar'>@actions</span><span class='period'>.</span><span class='id identifier rubyid_natural_push'>natural_push</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span><span class='comma'>,</span> <span class='label'>before:</span><span class='rparen'>)</span>
|
@@ -1320,14 +1344,20 @@
|
|
1320
1344
|
132
|
1321
1345
|
133
|
1322
1346
|
134
|
1323
|
-
135
|
1347
|
+
135
|
1348
|
+
136
|
1349
|
+
137
|
1350
|
+
138</pre>
|
1324
1351
|
</td>
|
1325
1352
|
<td>
|
1326
1353
|
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 132</span>
|
1327
1354
|
|
1328
1355
|
<span class='kw'>def</span> <span class='id identifier rubyid_content'>content</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='symbol'>:main</span><span class='comma'>,</span> <span class='label'>before:</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='comma'>,</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
1329
|
-
<span class='
|
1330
|
-
<span class='
|
1356
|
+
<span class='comment'># A block is required here, but if this is an override (e.g. to hide another content block), we can tolerate the missing block.
|
1357
|
+
</span> <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_block_given?'>block_given?</span> <span class='op'>&&</span> <span class='ivar'>@content_blocks</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_b'>b</span><span class='op'>|</span> <span class='id identifier rubyid_b'>b</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='id identifier rubyid_name'>name</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
1358
|
+
<span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>`content` expects a block in </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1359
|
+
<span class='kw'>end</span>
|
1360
|
+
<span class='ivar'>@content_blocks</span><span class='period'>.</span><span class='id identifier rubyid_natural_push'>natural_push</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_block'>block</span> <span class='op'>||</span> <span class='symbol'>:missing</span><span class='comma'>,</span> <span class='label'>before:</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_kwargs'>kwargs</span><span class='rparen'>)</span>
|
1331
1361
|
<span class='kw'>end</span></pre>
|
1332
1362
|
</td>
|
1333
1363
|
</tr>
|
@@ -1625,6 +1655,71 @@
|
|
1625
1655
|
</td>
|
1626
1656
|
</tr>
|
1627
1657
|
</table>
|
1658
|
+
</div>
|
1659
|
+
|
1660
|
+
<div class="method_details ">
|
1661
|
+
<h3 class="signature " id="remove_content-instance_method">
|
1662
|
+
|
1663
|
+
#<strong>remove_content</strong>(name) ⇒ <tt>Object</tt>
|
1664
|
+
|
1665
|
+
|
1666
|
+
|
1667
|
+
|
1668
|
+
|
1669
|
+
</h3><div class="docstring">
|
1670
|
+
<div class="discussion">
|
1671
|
+
|
1672
|
+
<p>DSL method Removes a content block. Use this in subclasses if a content block defined in the parent should be removed from the child.</p>
|
1673
|
+
|
1674
|
+
|
1675
|
+
</div>
|
1676
|
+
</div>
|
1677
|
+
<div class="tags">
|
1678
|
+
<p class="tag_title">Parameters:</p>
|
1679
|
+
<ul class="param">
|
1680
|
+
|
1681
|
+
<li>
|
1682
|
+
|
1683
|
+
<span class='name'>name</span>
|
1684
|
+
|
1685
|
+
|
1686
|
+
<span class='type'>(<tt>Symbol</tt>, <tt>String</tt>)</span>
|
1687
|
+
|
1688
|
+
|
1689
|
+
|
1690
|
+
—
|
1691
|
+
<div class='inline'>
|
1692
|
+
<p>Name of the content block that should be removed</p>
|
1693
|
+
</div>
|
1694
|
+
|
1695
|
+
</li>
|
1696
|
+
|
1697
|
+
</ul>
|
1698
|
+
|
1699
|
+
|
1700
|
+
</div><table class="source_code">
|
1701
|
+
<tr>
|
1702
|
+
<td>
|
1703
|
+
<pre class="lines">
|
1704
|
+
|
1705
|
+
|
1706
|
+
143
|
1707
|
+
144
|
1708
|
+
145
|
1709
|
+
146
|
1710
|
+
147</pre>
|
1711
|
+
</td>
|
1712
|
+
<td>
|
1713
|
+
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 143</span>
|
1714
|
+
|
1715
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_remove_content'>remove_content</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
|
1716
|
+
<span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
1717
|
+
<span class='id identifier rubyid_existing_index'>existing_index</span> <span class='op'>=</span> <span class='ivar'>@content_blocks</span><span class='period'>.</span><span class='id identifier rubyid_find_index'>find_index</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_el'>el</span><span class='op'>|</span> <span class='id identifier rubyid_el'>el</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>==</span> <span class='id identifier rubyid_name'>name</span> <span class='rbrace'>}</span> <span class='op'>||</span> <span class='id identifier rubyid_fail'>fail</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Content block </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'> not found for removal in </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_inspect'>inspect</span><span class='embexpr_end'>}</span><span class='tstring_content'>.</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1718
|
+
<span class='ivar'>@content_blocks</span><span class='period'>.</span><span class='id identifier rubyid_delete_at'>delete_at</span><span class='lparen'>(</span><span class='id identifier rubyid_existing_index'>existing_index</span><span class='rparen'>)</span>
|
1719
|
+
<span class='kw'>end</span></pre>
|
1720
|
+
</td>
|
1721
|
+
</tr>
|
1722
|
+
</table>
|
1628
1723
|
</div>
|
1629
1724
|
|
1630
1725
|
<div class="method_details ">
|
@@ -1675,18 +1770,6 @@
|
|
1675
1770
|
<pre class="lines">
|
1676
1771
|
|
1677
1772
|
|
1678
|
-
140
|
1679
|
-
141
|
1680
|
-
142
|
1681
|
-
143
|
1682
|
-
144
|
1683
|
-
145
|
1684
|
-
146
|
1685
|
-
147
|
1686
|
-
148
|
1687
|
-
149
|
1688
|
-
150
|
1689
|
-
151
|
1690
1773
|
152
|
1691
1774
|
153
|
1692
1775
|
154
|
@@ -1705,10 +1788,22 @@
|
|
1705
1788
|
167
|
1706
1789
|
168
|
1707
1790
|
169
|
1708
|
-
170
|
1791
|
+
170
|
1792
|
+
171
|
1793
|
+
172
|
1794
|
+
173
|
1795
|
+
174
|
1796
|
+
175
|
1797
|
+
176
|
1798
|
+
177
|
1799
|
+
178
|
1800
|
+
179
|
1801
|
+
180
|
1802
|
+
181
|
1803
|
+
182</pre>
|
1709
1804
|
</td>
|
1710
1805
|
<td>
|
1711
|
-
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line
|
1806
|
+
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 152</span>
|
1712
1807
|
|
1713
1808
|
<span class='kw'>def</span> <span class='id identifier rubyid_render'>render</span><span class='lparen'>(</span><span class='id identifier rubyid_controller'>controller</span><span class='comma'>,</span> <span class='label'>standalone:</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='op'>**</span><span class='id identifier rubyid_locals'>locals</span><span class='rparen'>)</span>
|
1714
1809
|
<span class='comment'># Call before_render hooks (if any) and backfire instance variables back to the component
|
@@ -1772,25 +1867,25 @@
|
|
1772
1867
|
<pre class="lines">
|
1773
1868
|
|
1774
1869
|
|
1775
|
-
186
|
1776
|
-
187
|
1777
|
-
188
|
1778
|
-
189
|
1779
|
-
190
|
1780
|
-
191
|
1781
|
-
192
|
1782
|
-
193
|
1783
|
-
194
|
1784
|
-
195
|
1785
|
-
196
|
1786
|
-
197
|
1787
1870
|
198
|
1788
1871
|
199
|
1789
1872
|
200
|
1790
|
-
201
|
1873
|
+
201
|
1874
|
+
202
|
1875
|
+
203
|
1876
|
+
204
|
1877
|
+
205
|
1878
|
+
206
|
1879
|
+
207
|
1880
|
+
208
|
1881
|
+
209
|
1882
|
+
210
|
1883
|
+
211
|
1884
|
+
212
|
1885
|
+
213</pre>
|
1791
1886
|
</td>
|
1792
1887
|
<td>
|
1793
|
-
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line
|
1888
|
+
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 198</span>
|
1794
1889
|
|
1795
1890
|
<span class='kw'>def</span> <span class='id identifier rubyid_render_actions'>render_actions</span><span class='lparen'>(</span><span class='id identifier rubyid_controller'>controller</span><span class='comma'>,</span> <span class='label'>wrapper_class:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='label'>action_class:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1796
1891
|
<span class='id identifier rubyid_h'>h</span> <span class='op'>=</span> <span class='id identifier rubyid_controller'>controller</span><span class='period'>.</span><span class='id identifier rubyid_helpers'>helpers</span>
|
@@ -1852,12 +1947,12 @@
|
|
1852
1947
|
<pre class="lines">
|
1853
1948
|
|
1854
1949
|
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1950
|
+
216
|
1951
|
+
217
|
1952
|
+
218</pre>
|
1858
1953
|
</td>
|
1859
1954
|
<td>
|
1860
|
-
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line
|
1955
|
+
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 216</span>
|
1861
1956
|
|
1862
1957
|
<span class='kw'>def</span> <span class='id identifier rubyid_resourceful?'>resourceful?</span>
|
1863
1958
|
<span class='kw'>return</span> <span class='kw'>false</span>
|
@@ -1990,12 +2085,12 @@
|
|
1990
2085
|
<pre class="lines">
|
1991
2086
|
|
1992
2087
|
|
1993
|
-
|
1994
|
-
|
1995
|
-
|
2088
|
+
193
|
2089
|
+
194
|
2090
|
+
195</pre>
|
1996
2091
|
</td>
|
1997
2092
|
<td>
|
1998
|
-
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line
|
2093
|
+
<pre class="code"><span class="info file"># File 'lib/compony/component.rb', line 193</span>
|
1999
2094
|
|
2000
2095
|
<span class='kw'>def</span> <span class='id identifier rubyid_skip_action'>skip_action</span><span class='lparen'>(</span><span class='id identifier rubyid_action_name'>action_name</span><span class='rparen'>)</span>
|
2001
2096
|
<span class='ivar'>@skipped_actions</span> <span class='op'><<</span> <span class='id identifier rubyid_action_name'>action_name</span><span class='period'>.</span><span class='id identifier rubyid_to_sym'>to_sym</span>
|
@@ -2055,7 +2150,7 @@
|
|
2055
2150
|
</div>
|
2056
2151
|
|
2057
2152
|
<div id="footer">
|
2058
|
-
Generated on
|
2153
|
+
Generated on Fri May 31 14:28:30 2024 by
|
2059
2154
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2060
2155
|
0.9.34 (ruby-3.2.2).
|
2061
2156
|
</div>
|
@@ -396,7 +396,7 @@
|
|
396
396
|
</div>
|
397
397
|
|
398
398
|
<div id="footer">
|
399
|
-
Generated on
|
399
|
+
Generated on Fri May 31 14:28:30 2024 by
|
400
400
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
401
401
|
0.9.34 (ruby-3.2.2).
|
402
402
|
</div>
|
@@ -529,7 +529,7 @@
|
|
529
529
|
</div>
|
530
530
|
|
531
531
|
<div id="footer">
|
532
|
-
Generated on
|
532
|
+
Generated on Fri May 31 14:28:30 2024 by
|
533
533
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
534
534
|
0.9.34 (ruby-3.2.2).
|
535
535
|
</div>
|
@@ -578,7 +578,7 @@
|
|
578
578
|
</div>
|
579
579
|
|
580
580
|
<div id="footer">
|
581
|
-
Generated on
|
581
|
+
Generated on Fri May 31 14:28:30 2024 by
|
582
582
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
583
583
|
0.9.34 (ruby-3.2.2).
|
584
584
|
</div>
|
@@ -567,7 +567,7 @@
|
|
567
567
|
</div>
|
568
568
|
|
569
569
|
<div id="footer">
|
570
|
-
Generated on
|
570
|
+
Generated on Fri May 31 14:28:30 2024 by
|
571
571
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
572
572
|
0.9.34 (ruby-3.2.2).
|
573
573
|
</div>
|
@@ -682,7 +682,7 @@
|
|
682
682
|
</div>
|
683
683
|
|
684
684
|
<div id="footer">
|
685
|
-
Generated on
|
685
|
+
Generated on Fri May 31 14:28:30 2024 by
|
686
686
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
687
687
|
0.9.34 (ruby-3.2.2).
|
688
688
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Fri May 31 14:28:29 2024 by
|
120
120
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.9.34 (ruby-3.2.2).
|
122
122
|
</div>
|
@@ -1183,7 +1183,7 @@
|
|
1183
1183
|
</div>
|
1184
1184
|
|
1185
1185
|
<div id="footer">
|
1186
|
-
Generated on
|
1186
|
+
Generated on Fri May 31 14:28:29 2024 by
|
1187
1187
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1188
1188
|
0.9.34 (ruby-3.2.2).
|
1189
1189
|
</div>
|
@@ -116,7 +116,7 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Fri May 31 14:28:29 2024 by
|
120
120
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
121
|
0.9.34 (ruby-3.2.2).
|
122
122
|
</div>
|
@@ -196,7 +196,7 @@
|
|
196
196
|
|
197
197
|
|
198
198
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
199
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_cst-instance_method" title="Compony::Component#comp_cst (method)">#comp_cst</a></span>, <span class='object_link'><a href="../Component.html#comp_name-instance_method" title="Compony::Component#comp_name (method)">#comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#family_cst-instance_method" title="Compony::Component#family_cst (method)">#family_cst</a></span>, <span class='object_link'><a href="../Component.html#family_name-instance_method" title="Compony::Component#family_name (method)">#family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#path_hash-instance_method" title="Compony::Component#path_hash (method)">#path_hash</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#render_actions-instance_method" title="Compony::Component#render_actions (method)">#render_actions</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#skip_action-instance_method" title="Compony::Component#skip_action (method)">#skip_action</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
|
199
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_cst-instance_method" title="Compony::Component#comp_cst (method)">#comp_cst</a></span>, <span class='object_link'><a href="../Component.html#comp_name-instance_method" title="Compony::Component#comp_name (method)">#comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#family_cst-instance_method" title="Compony::Component#family_cst (method)">#family_cst</a></span>, <span class='object_link'><a href="../Component.html#family_name-instance_method" title="Compony::Component#family_name (method)">#family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#path_hash-instance_method" title="Compony::Component#path_hash (method)">#path_hash</a></span>, <span class='object_link'><a href="../Component.html#remove_content-instance_method" title="Compony::Component#remove_content (method)">#remove_content</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#render_actions-instance_method" title="Compony::Component#render_actions (method)">#render_actions</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#skip_action-instance_method" title="Compony::Component#skip_action (method)">#skip_action</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
|
200
200
|
<div id="constructor_details" class="method_details_list">
|
201
201
|
<h2>Constructor Details</h2>
|
202
202
|
|
@@ -283,7 +283,7 @@
|
|
283
283
|
</div>
|
284
284
|
|
285
285
|
<div id="footer">
|
286
|
-
Generated on
|
286
|
+
Generated on Fri May 31 14:28:30 2024 by
|
287
287
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
288
288
|
0.9.34 (ruby-3.2.2).
|
289
289
|
</div>
|
@@ -239,7 +239,7 @@
|
|
239
239
|
|
240
240
|
|
241
241
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Component.html" title="Compony::Component (class)">Compony::Component</a></span></h3>
|
242
|
-
<p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_cst-instance_method" title="Compony::Component#comp_cst (method)">#comp_cst</a></span>, <span class='object_link'><a href="../Component.html#comp_name-instance_method" title="Compony::Component#comp_name (method)">#comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#family_cst-instance_method" title="Compony::Component#family_cst (method)">#family_cst</a></span>, <span class='object_link'><a href="../Component.html#family_name-instance_method" title="Compony::Component#family_name (method)">#family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#initialize-instance_method" title="Compony::Component#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#path_hash-instance_method" title="Compony::Component#path_hash (method)">#path_hash</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#render_actions-instance_method" title="Compony::Component#render_actions (method)">#render_actions</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#skip_action-instance_method" title="Compony::Component#skip_action (method)">#skip_action</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
|
242
|
+
<p class="inherited"><span class='object_link'><a href="../Component.html#action-instance_method" title="Compony::Component#action (method)">#action</a></span>, <span class='object_link'><a href="../Component.html#before_render-instance_method" title="Compony::Component#before_render (method)">#before_render</a></span>, <span class='object_link'><a href="../Component.html#comp_cst-instance_method" title="Compony::Component#comp_cst (method)">#comp_cst</a></span>, <span class='object_link'><a href="../Component.html#comp_name-instance_method" title="Compony::Component#comp_name (method)">#comp_name</a></span>, <span class='object_link'><a href="../Component.html#content-instance_method" title="Compony::Component#content (method)">#content</a></span>, <span class='object_link'><a href="../Component.html#family_cst-instance_method" title="Compony::Component#family_cst (method)">#family_cst</a></span>, <span class='object_link'><a href="../Component.html#family_name-instance_method" title="Compony::Component#family_name (method)">#family_name</a></span>, <span class='object_link'><a href="../Component.html#id-instance_method" title="Compony::Component#id (method)">#id</a></span>, <span class='object_link'><a href="../Component.html#initialize-instance_method" title="Compony::Component#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Component.html#inspect-instance_method" title="Compony::Component#inspect (method)">#inspect</a></span>, <span class='object_link'><a href="../Component.html#param_name-instance_method" title="Compony::Component#param_name (method)">#param_name</a></span>, <span class='object_link'><a href="../Component.html#path-instance_method" title="Compony::Component#path (method)">#path</a></span>, <span class='object_link'><a href="../Component.html#path_hash-instance_method" title="Compony::Component#path_hash (method)">#path_hash</a></span>, <span class='object_link'><a href="../Component.html#remove_content-instance_method" title="Compony::Component#remove_content (method)">#remove_content</a></span>, <span class='object_link'><a href="../Component.html#render-instance_method" title="Compony::Component#render (method)">#render</a></span>, <span class='object_link'><a href="../Component.html#render_actions-instance_method" title="Compony::Component#render_actions (method)">#render_actions</a></span>, <span class='object_link'><a href="../Component.html#resourceful%3F-instance_method" title="Compony::Component#resourceful? (method)">#resourceful?</a></span>, <span class='object_link'><a href="../Component.html#root_comp-instance_method" title="Compony::Component#root_comp (method)">#root_comp</a></span>, <span class='object_link'><a href="../Component.html#root_comp%3F-instance_method" title="Compony::Component#root_comp? (method)">#root_comp?</a></span>, <span class='object_link'><a href="../Component.html#setup-class_method" title="Compony::Component.setup (method)">setup</a></span>, <span class='object_link'><a href="../Component.html#skip_action-instance_method" title="Compony::Component#skip_action (method)">#skip_action</a></span>, <span class='object_link'><a href="../Component.html#sub_comp-instance_method" title="Compony::Component#sub_comp (method)">#sub_comp</a></span></p>
|
243
243
|
|
244
244
|
|
245
245
|
<div id="instance_method_details" class="method_details_list">
|
@@ -272,12 +272,12 @@
|
|
272
272
|
<pre class="lines">
|
273
273
|
|
274
274
|
|
275
|
-
|
276
|
-
|
277
|
-
|
275
|
+
82
|
276
|
+
83
|
277
|
+
84</pre>
|
278
278
|
</td>
|
279
279
|
<td>
|
280
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/destroy.rb', line
|
280
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/destroy.rb', line 82</span>
|
281
281
|
|
282
282
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_destroyed'>on_destroyed</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
283
283
|
<span class='ivar'>@on_destroyed_block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -313,12 +313,12 @@
|
|
313
313
|
<pre class="lines">
|
314
314
|
|
315
315
|
|
316
|
-
|
317
|
-
|
318
|
-
|
316
|
+
92
|
317
|
+
93
|
318
|
+
94</pre>
|
319
319
|
</td>
|
320
320
|
<td>
|
321
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/destroy.rb', line
|
321
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/destroy.rb', line 92</span>
|
322
322
|
|
323
323
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_destroyed_redirect_path'>on_destroyed_redirect_path</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
324
324
|
<span class='ivar'>@on_destroyed_redirect_path_block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -354,12 +354,12 @@
|
|
354
354
|
<pre class="lines">
|
355
355
|
|
356
356
|
|
357
|
-
|
358
|
-
|
359
|
-
|
357
|
+
87
|
358
|
+
88
|
359
|
+
89</pre>
|
360
360
|
</td>
|
361
361
|
<td>
|
362
|
-
<pre class="code"><span class="info file"># File 'lib/compony/components/destroy.rb', line
|
362
|
+
<pre class="code"><span class="info file"># File 'lib/compony/components/destroy.rb', line 87</span>
|
363
363
|
|
364
364
|
<span class='kw'>def</span> <span class='id identifier rubyid_on_destroyed_respond'>on_destroyed_respond</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
365
365
|
<span class='ivar'>@on_destroyed_respond_block</span> <span class='op'>=</span> <span class='id identifier rubyid_block'>block</span>
|
@@ -374,7 +374,7 @@
|
|
374
374
|
</div>
|
375
375
|
|
376
376
|
<div id="footer">
|
377
|
-
Generated on
|
377
|
+
Generated on Fri May 31 14:28:30 2024 by
|
378
378
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
379
379
|
0.9.34 (ruby-3.2.2).
|
380
380
|
</div>
|