orthodox 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,855 @@
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: ControllerGenerator
8
+
9
+ &mdash; Orthodox
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 = "ControllerGenerator";
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 (C)</a> &raquo;
40
+
41
+
42
+ <span class="title">ControllerGenerator</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: ControllerGenerator
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">ControllerGenerator</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/controller/controller_generator.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+
105
+
106
+ <h2>
107
+ Constant Summary
108
+ <small><a href="#" class="constants_summary_toggle">collapse</a></small>
109
+ </h2>
110
+
111
+ <dl class="constants">
112
+
113
+ <dt id="NON_TEMPLATE_ACTIONS-constant" class="">NON_TEMPLATE_ACTIONS =
114
+
115
+ </dt>
116
+ <dd><pre class="code"><span class='qwords_beg'>%w[</span><span class='tstring_content'>create</span><span class='words_sep'> </span><span class='tstring_content'>update</span><span class='words_sep'> </span><span class='tstring_content'>destroy</span><span class='tstring_end'>]</span></span></pre></dd>
117
+
118
+ </dl>
119
+
120
+
121
+
122
+
123
+
124
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
125
+ <ul class="summary">
126
+
127
+ <li class="public ">
128
+ <span class="summary_signature">
129
+
130
+ <a href="#namespace-instance_method" title="#namespace (instance method)">#<strong>namespace</strong> &#x21d2; Object </a>
131
+
132
+
133
+
134
+ </span>
135
+
136
+
137
+
138
+
139
+ <span class="note title readonly">readonly</span>
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <span class="summary_desc"><div class='inline'><p>Returns the value of attribute namespace.</p>
150
+ </div></span>
151
+
152
+ </li>
153
+
154
+
155
+ </ul>
156
+
157
+
158
+
159
+
160
+
161
+ <h2>
162
+ Instance Method Summary
163
+ <small><a href="#" class="summary_toggle">collapse</a></small>
164
+ </h2>
165
+
166
+ <ul class="summary">
167
+
168
+ <li class="private ">
169
+ <span class="summary_signature">
170
+
171
+ <a href="#authenticate_actor-instance_method" title="#authenticate_actor (instance method)">#<strong>authenticate_actor</strong> &#x21d2; Object </a>
172
+
173
+
174
+
175
+ </span>
176
+
177
+
178
+
179
+ <span class="note title private">private</span>
180
+
181
+
182
+
183
+
184
+
185
+ <span class="summary_desc"><div class='inline'></div></span>
186
+
187
+ </li>
188
+
189
+
190
+ <li class="private ">
191
+ <span class="summary_signature">
192
+
193
+ <a href="#authenticate_actor%3F-instance_method" title="#authenticate_actor? (instance method)">#<strong>authenticate_actor?</strong> &#x21d2; Boolean </a>
194
+
195
+
196
+
197
+ </span>
198
+
199
+
200
+
201
+ <span class="note title private">private</span>
202
+
203
+
204
+
205
+
206
+
207
+ <span class="summary_desc"><div class='inline'></div></span>
208
+
209
+ </li>
210
+
211
+
212
+ <li class="public ">
213
+ <span class="summary_signature">
214
+
215
+ <a href="#copy_template_file-instance_method" title="#copy_template_file (instance method)">#<strong>copy_template_file</strong> &#x21d2; Object </a>
216
+
217
+
218
+
219
+ </span>
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+ <span class="summary_desc"><div class='inline'></div></span>
230
+
231
+ </li>
232
+
233
+
234
+ <li class="private ">
235
+ <span class="summary_signature">
236
+
237
+ <a href="#create_flash_message-instance_method" title="#create_flash_message (instance method)">#<strong>create_flash_message</strong> &#x21d2; Object </a>
238
+
239
+
240
+
241
+ </span>
242
+
243
+
244
+
245
+ <span class="note title private">private</span>
246
+
247
+
248
+
249
+
250
+
251
+ <span class="summary_desc"><div class='inline'></div></span>
252
+
253
+ </li>
254
+
255
+
256
+ <li class="private ">
257
+ <span class="summary_signature">
258
+
259
+ <a href="#destroy_flash_message-instance_method" title="#destroy_flash_message (instance method)">#<strong>destroy_flash_message</strong> &#x21d2; Object </a>
260
+
261
+
262
+
263
+ </span>
264
+
265
+
266
+
267
+ <span class="note title private">private</span>
268
+
269
+
270
+
271
+
272
+
273
+ <span class="summary_desc"><div class='inline'></div></span>
274
+
275
+ </li>
276
+
277
+
278
+ <li class="private ">
279
+ <span class="summary_signature">
280
+
281
+ <a href="#file_path-instance_method" title="#file_path (instance method)">#<strong>file_path</strong> &#x21d2; Object </a>
282
+
283
+
284
+
285
+ </span>
286
+
287
+
288
+
289
+ <span class="note title private">private</span>
290
+
291
+
292
+
293
+
294
+
295
+ <span class="summary_desc"><div class='inline'></div></span>
296
+
297
+ </li>
298
+
299
+
300
+ <li class="private ">
301
+ <span class="summary_signature">
302
+
303
+ <a href="#namespace_path-instance_method" title="#namespace_path (instance method)">#<strong>namespace_path</strong> &#x21d2; Object </a>
304
+
305
+
306
+
307
+ </span>
308
+
309
+
310
+
311
+ <span class="note title private">private</span>
312
+
313
+
314
+
315
+
316
+
317
+ <span class="summary_desc"><div class='inline'></div></span>
318
+
319
+ </li>
320
+
321
+
322
+ <li class="private ">
323
+ <span class="summary_signature">
324
+
325
+ <a href="#parent_class_name-instance_method" title="#parent_class_name (instance method)">#<strong>parent_class_name</strong> &#x21d2; Object </a>
326
+
327
+
328
+
329
+ </span>
330
+
331
+
332
+
333
+ <span class="note title private">private</span>
334
+
335
+
336
+
337
+
338
+
339
+ <span class="summary_desc"><div class='inline'></div></span>
340
+
341
+ </li>
342
+
343
+
344
+ <li class="private ">
345
+ <span class="summary_signature">
346
+
347
+ <a href="#singular_name-instance_method" title="#singular_name (instance method)">#<strong>singular_name</strong> &#x21d2; Object </a>
348
+
349
+
350
+
351
+ </span>
352
+
353
+
354
+
355
+ <span class="note title private">private</span>
356
+
357
+
358
+
359
+
360
+
361
+ <span class="summary_desc"><div class='inline'></div></span>
362
+
363
+ </li>
364
+
365
+
366
+ <li class="private ">
367
+ <span class="summary_signature">
368
+
369
+ <a href="#template_file_path-instance_method" title="#template_file_path (instance method)">#<strong>template_file_path</strong>(temp_name) &#x21d2; Object </a>
370
+
371
+
372
+
373
+ </span>
374
+
375
+
376
+
377
+ <span class="note title private">private</span>
378
+
379
+
380
+
381
+
382
+
383
+ <span class="summary_desc"><div class='inline'></div></span>
384
+
385
+ </li>
386
+
387
+
388
+ <li class="private ">
389
+ <span class="summary_signature">
390
+
391
+ <a href="#update_flash_message-instance_method" title="#update_flash_message (instance method)">#<strong>update_flash_message</strong> &#x21d2; Object </a>
392
+
393
+
394
+
395
+ </span>
396
+
397
+
398
+
399
+ <span class="note title private">private</span>
400
+
401
+
402
+
403
+
404
+
405
+ <span class="summary_desc"><div class='inline'></div></span>
406
+
407
+ </li>
408
+
409
+
410
+ </ul>
411
+
412
+
413
+
414
+
415
+ <div id="instance_attr_details" class="attr_details">
416
+ <h2>Instance Attribute Details</h2>
417
+
418
+
419
+ <span id=""></span>
420
+ <div class="method_details first">
421
+ <h3 class="signature first" id="namespace-instance_method">
422
+
423
+ #<strong>namespace</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
424
+
425
+
426
+
427
+
428
+
429
+ </h3><div class="docstring">
430
+ <div class="discussion">
431
+ <p>Returns the value of attribute namespace.</p>
432
+
433
+
434
+ </div>
435
+ </div>
436
+ <div class="tags">
437
+
438
+
439
+ </div><table class="source_code">
440
+ <tr>
441
+ <td>
442
+ <pre class="lines">
443
+
444
+
445
+ 16
446
+ 17
447
+ 18</pre>
448
+ </td>
449
+ <td>
450
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 16</span>
451
+
452
+ <span class='kw'>def</span> <span class='id identifier rubyid_namespace'>namespace</span>
453
+ <span class='ivar'>@namespace</span>
454
+ <span class='kw'>end</span></pre>
455
+ </td>
456
+ </tr>
457
+ </table>
458
+ </div>
459
+
460
+ </div>
461
+
462
+
463
+ <div id="instance_method_details" class="method_details_list">
464
+ <h2>Instance Method Details</h2>
465
+
466
+
467
+ <div class="method_details first">
468
+ <h3 class="signature first" id="authenticate_actor-instance_method">
469
+
470
+ #<strong>authenticate_actor</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
471
+
472
+
473
+
474
+
475
+
476
+ </h3><table class="source_code">
477
+ <tr>
478
+ <td>
479
+ <pre class="lines">
480
+
481
+
482
+ 72
483
+ 73
484
+ 74</pre>
485
+ </td>
486
+ <td>
487
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 72</span>
488
+
489
+ <span class='kw'>def</span> <span class='id identifier rubyid_authenticate_actor'>authenticate_actor</span>
490
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>authenticate</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
491
+ <span class='kw'>end</span></pre>
492
+ </td>
493
+ </tr>
494
+ </table>
495
+ </div>
496
+
497
+ <div class="method_details ">
498
+ <h3 class="signature " id="authenticate_actor?-instance_method">
499
+
500
+ #<strong>authenticate_actor?</strong> &#x21d2; <tt>Boolean</tt> <span class="extras">(private)</span>
501
+
502
+
503
+
504
+
505
+
506
+ </h3><div class="docstring">
507
+ <div class="discussion">
508
+
509
+
510
+ </div>
511
+ </div>
512
+ <div class="tags">
513
+
514
+ <p class="tag_title">Returns:</p>
515
+ <ul class="return">
516
+
517
+ <li>
518
+
519
+
520
+ <span class='type'>(<tt>Boolean</tt>)</span>
521
+
522
+
523
+
524
+ </li>
525
+
526
+ </ul>
527
+
528
+ </div><table class="source_code">
529
+ <tr>
530
+ <td>
531
+ <pre class="lines">
532
+
533
+
534
+ 68
535
+ 69
536
+ 70</pre>
537
+ </td>
538
+ <td>
539
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 68</span>
540
+
541
+ <span class='kw'>def</span> <span class='id identifier rubyid_authenticate_actor?'>authenticate_actor?</span>
542
+ <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>authenticate</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span>
543
+ <span class='kw'>end</span></pre>
544
+ </td>
545
+ </tr>
546
+ </table>
547
+ </div>
548
+
549
+ <div class="method_details ">
550
+ <h3 class="signature " id="copy_template_file-instance_method">
551
+
552
+ #<strong>copy_template_file</strong> &#x21d2; <tt>Object</tt>
553
+
554
+
555
+
556
+
557
+
558
+ </h3><table class="source_code">
559
+ <tr>
560
+ <td>
561
+ <pre class="lines">
562
+
563
+
564
+ 18
565
+ 19
566
+ 20
567
+ 21
568
+ 22
569
+ 23
570
+ 24
571
+ 25
572
+ 26</pre>
573
+ </td>
574
+ <td>
575
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 18</span>
576
+
577
+ <span class='kw'>def</span> <span class='id identifier rubyid_copy_template_file'>copy_template_file</span>
578
+ <span class='ivar'>@namespace</span> <span class='op'>=</span> <span class='id identifier rubyid_class_name'>class_name</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>::</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
579
+ <span class='ivar'>@namespace</span><span class='period'>.</span><span class='id identifier rubyid_pop'>pop</span>
580
+ <span class='ivar'>@namespace</span> <span class='op'>=</span> <span class='ivar'>@namespace</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>::</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
581
+ <span class='id identifier rubyid_template'>template</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>controller.rb.erb</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_file_path'>file_path</span>
582
+ <span class='lparen'>(</span><span class='id identifier rubyid_actions'>actions</span> <span class='op'>-</span> <span class='const'><span class='object_link'><a href="#NON_TEMPLATE_ACTIONS-constant" title="ControllerGenerator::NON_TEMPLATE_ACTIONS (constant)">NON_TEMPLATE_ACTIONS</a></span></span><span class='rparen'>)</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_temp_name'>temp_name</span><span class='op'>|</span>
583
+ <span class='id identifier rubyid_template'>template</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>view.html.slim</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_template_file_path'>template_file_path</span><span class='lparen'>(</span><span class='id identifier rubyid_temp_name'>temp_name</span><span class='rparen'>)</span>
584
+ <span class='kw'>end</span>
585
+ <span class='kw'>end</span></pre>
586
+ </td>
587
+ </tr>
588
+ </table>
589
+ </div>
590
+
591
+ <div class="method_details ">
592
+ <h3 class="signature " id="create_flash_message-instance_method">
593
+
594
+ #<strong>create_flash_message</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
595
+
596
+
597
+
598
+
599
+
600
+ </h3><table class="source_code">
601
+ <tr>
602
+ <td>
603
+ <pre class="lines">
604
+
605
+
606
+ 30
607
+ 31
608
+ 32</pre>
609
+ </td>
610
+ <td>
611
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 30</span>
612
+
613
+ <span class='kw'>def</span> <span class='id identifier rubyid_create_flash_message'>create_flash_message</span>
614
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Successfully created </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_singular_name'>singular_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
615
+ <span class='kw'>end</span></pre>
616
+ </td>
617
+ </tr>
618
+ </table>
619
+ </div>
620
+
621
+ <div class="method_details ">
622
+ <h3 class="signature " id="destroy_flash_message-instance_method">
623
+
624
+ #<strong>destroy_flash_message</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
625
+
626
+
627
+
628
+
629
+
630
+ </h3><table class="source_code">
631
+ <tr>
632
+ <td>
633
+ <pre class="lines">
634
+
635
+
636
+ 38
637
+ 39
638
+ 40</pre>
639
+ </td>
640
+ <td>
641
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 38</span>
642
+
643
+ <span class='kw'>def</span> <span class='id identifier rubyid_destroy_flash_message'>destroy_flash_message</span>
644
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Successfully destroyed </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_singular_name'>singular_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
645
+ <span class='kw'>end</span></pre>
646
+ </td>
647
+ </tr>
648
+ </table>
649
+ </div>
650
+
651
+ <div class="method_details ">
652
+ <h3 class="signature " id="file_path-instance_method">
653
+
654
+ #<strong>file_path</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
655
+
656
+
657
+
658
+
659
+
660
+ </h3><table class="source_code">
661
+ <tr>
662
+ <td>
663
+ <pre class="lines">
664
+
665
+
666
+ 42
667
+ 43
668
+ 44
669
+ 45</pre>
670
+ </td>
671
+ <td>
672
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 42</span>
673
+
674
+ <span class='kw'>def</span> <span class='id identifier rubyid_file_path'>file_path</span>
675
+ <span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_root'>root</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>app</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>controllers</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
676
+ <span class='id identifier rubyid_namespace_path'>namespace_path</span> <span class='op'>+</span> <span class='id identifier rubyid_file_name'>file_name</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>_controller.rb</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
677
+ <span class='kw'>end</span></pre>
678
+ </td>
679
+ </tr>
680
+ </table>
681
+ </div>
682
+
683
+ <div class="method_details ">
684
+ <h3 class="signature " id="namespace_path-instance_method">
685
+
686
+ #<strong>namespace_path</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
687
+
688
+
689
+
690
+
691
+
692
+ </h3><table class="source_code">
693
+ <tr>
694
+ <td>
695
+ <pre class="lines">
696
+
697
+
698
+ 52
699
+ 53
700
+ 54
701
+ 55
702
+ 56
703
+ 57
704
+ 58</pre>
705
+ </td>
706
+ <td>
707
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 52</span>
708
+
709
+ <span class='kw'>def</span> <span class='id identifier rubyid_namespace_path'>namespace_path</span>
710
+ <span class='kw'>if</span> <span class='id identifier rubyid_namespace'>namespace</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span>
711
+ <span class='kw'>return</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span>
712
+ <span class='kw'>else</span>
713
+ <span class='id identifier rubyid_namespace'>namespace</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>::</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:underscore</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='tstring_end'>&quot;</span></span>
714
+ <span class='kw'>end</span>
715
+ <span class='kw'>end</span></pre>
716
+ </td>
717
+ </tr>
718
+ </table>
719
+ </div>
720
+
721
+ <div class="method_details ">
722
+ <h3 class="signature " id="parent_class_name-instance_method">
723
+
724
+ #<strong>parent_class_name</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
725
+
726
+
727
+
728
+
729
+
730
+ </h3><table class="source_code">
731
+ <tr>
732
+ <td>
733
+ <pre class="lines">
734
+
735
+
736
+ 64
737
+ 65
738
+ 66</pre>
739
+ </td>
740
+ <td>
741
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 64</span>
742
+
743
+ <span class='kw'>def</span> <span class='id identifier rubyid_parent_class_name'>parent_class_name</span>
744
+ <span class='id identifier rubyid_namespace'>namespace</span><span class='period'>.</span><span class='id identifier rubyid_blank?'>blank?</span> <span class='op'>?</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>ApplicationController</span><span class='tstring_end'>&#39;</span></span> <span class='op'>:</span> <span class='id identifier rubyid_namespace'>namespace</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>::BaseController</span><span class='tstring_end'>&quot;</span></span>
745
+ <span class='kw'>end</span></pre>
746
+ </td>
747
+ </tr>
748
+ </table>
749
+ </div>
750
+
751
+ <div class="method_details ">
752
+ <h3 class="signature " id="singular_name-instance_method">
753
+
754
+ #<strong>singular_name</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
755
+
756
+
757
+
758
+
759
+
760
+ </h3><table class="source_code">
761
+ <tr>
762
+ <td>
763
+ <pre class="lines">
764
+
765
+
766
+ 60
767
+ 61
768
+ 62</pre>
769
+ </td>
770
+ <td>
771
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 60</span>
772
+
773
+ <span class='kw'>def</span> <span class='id identifier rubyid_singular_name'>singular_name</span>
774
+ <span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_singularize'>singularize</span>
775
+ <span class='kw'>end</span></pre>
776
+ </td>
777
+ </tr>
778
+ </table>
779
+ </div>
780
+
781
+ <div class="method_details ">
782
+ <h3 class="signature " id="template_file_path-instance_method">
783
+
784
+ #<strong>template_file_path</strong>(temp_name) &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
785
+
786
+
787
+
788
+
789
+
790
+ </h3><table class="source_code">
791
+ <tr>
792
+ <td>
793
+ <pre class="lines">
794
+
795
+
796
+ 47
797
+ 48
798
+ 49
799
+ 50</pre>
800
+ </td>
801
+ <td>
802
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 47</span>
803
+
804
+ <span class='kw'>def</span> <span class='id identifier rubyid_template_file_path'>template_file_path</span><span class='lparen'>(</span><span class='id identifier rubyid_temp_name'>temp_name</span><span class='rparen'>)</span>
805
+ <span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_root'>root</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>app</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>views</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_namespace_path'>namespace_path</span> <span class='op'>+</span> <span class='id identifier rubyid_file_name'>file_name</span><span class='comma'>,</span>
806
+ <span class='id identifier rubyid_temp_name'>temp_name</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>.html.slim</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
807
+ <span class='kw'>end</span></pre>
808
+ </td>
809
+ </tr>
810
+ </table>
811
+ </div>
812
+
813
+ <div class="method_details ">
814
+ <h3 class="signature " id="update_flash_message-instance_method">
815
+
816
+ #<strong>update_flash_message</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
817
+
818
+
819
+
820
+
821
+
822
+ </h3><table class="source_code">
823
+ <tr>
824
+ <td>
825
+ <pre class="lines">
826
+
827
+
828
+ 34
829
+ 35
830
+ 36</pre>
831
+ </td>
832
+ <td>
833
+ <pre class="code"><span class="info file"># File 'lib/generators/controller/controller_generator.rb', line 34</span>
834
+
835
+ <span class='kw'>def</span> <span class='id identifier rubyid_update_flash_message'>update_flash_message</span>
836
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Successfully updated </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_singular_name'>singular_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
837
+ <span class='kw'>end</span></pre>
838
+ </td>
839
+ </tr>
840
+ </table>
841
+ </div>
842
+
843
+ </div>
844
+
845
+ </div>
846
+
847
+ <div id="footer">
848
+ Generated on Thu Aug 13 16:36:42 2020 by
849
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
850
+ 0.9.24 (ruby-2.6.6).
851
+ </div>
852
+
853
+ </div>
854
+ </body>
855
+ </html>