titleist 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/tests.yml +19 -0
  3. data/.gitignore +1 -2
  4. data/.rubocop.yml +26 -1
  5. data/.ruby-version +1 -1
  6. data/Gemfile +13 -2
  7. data/README.md +95 -25
  8. data/Rakefile +17 -6
  9. data/docs/index.md +7 -0
  10. data/lib/generators/titleist/titleist_generator.rb +3 -0
  11. data/lib/titleist.rb +14 -9
  12. data/lib/titleist/controller.rb +36 -0
  13. data/lib/titleist/engine.rb +10 -4
  14. data/lib/titleist/helper.rb +23 -0
  15. data/lib/titleist/title.rb +52 -89
  16. data/lib/titleist/version.rb +5 -1
  17. data/rbi/sord.rbi +117 -0
  18. data/sorbet/config +2 -0
  19. data/sorbet/rbi/gems/actioncable.rbi +318 -0
  20. data/sorbet/rbi/gems/actionmailbox.rbi +56 -0
  21. data/sorbet/rbi/gems/actionmailer.rbi +446 -0
  22. data/sorbet/rbi/gems/actionpack.rbi +3411 -0
  23. data/sorbet/rbi/gems/actiontext.rbi +79 -0
  24. data/sorbet/rbi/gems/actionview.rbi +1185 -0
  25. data/sorbet/rbi/gems/activejob.rbi +362 -0
  26. data/sorbet/rbi/gems/activemodel.rbi +749 -0
  27. data/sorbet/rbi/gems/activerecord.rbi +5713 -0
  28. data/sorbet/rbi/gems/activestorage.rbi +221 -0
  29. data/sorbet/rbi/gems/activesupport.rbi +2437 -0
  30. data/sorbet/rbi/gems/addressable.rbi +146 -0
  31. data/sorbet/rbi/gems/ast.rbi +47 -0
  32. data/sorbet/rbi/gems/capybara.rbi +1787 -0
  33. data/sorbet/rbi/gems/childprocess.rbi +106 -0
  34. data/sorbet/rbi/gems/codeclimate-test-reporter.rbi +125 -0
  35. data/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
  36. data/sorbet/rbi/gems/crass.rbi +92 -0
  37. data/sorbet/rbi/gems/docile.rbi +29 -0
  38. data/sorbet/rbi/gems/erubi.rbi +26 -0
  39. data/sorbet/rbi/gems/globalid.rbi +98 -0
  40. data/sorbet/rbi/gems/i18n.rbi +191 -0
  41. data/sorbet/rbi/gems/jaro_winkler.rbi +14 -0
  42. data/sorbet/rbi/gems/loofah.rbi +129 -0
  43. data/sorbet/rbi/gems/mail.rbi +1582 -0
  44. data/sorbet/rbi/gems/marcel.rbi +12 -0
  45. data/sorbet/rbi/gems/method_source.rbi +63 -0
  46. data/sorbet/rbi/gems/mini_mime.rbi +51 -0
  47. data/sorbet/rbi/gems/minitest.rbi +419 -0
  48. data/sorbet/rbi/gems/mocha.rbi +794 -0
  49. data/sorbet/rbi/gems/nio4r.rbi +67 -0
  50. data/sorbet/rbi/gems/nokogiri.rbi +1010 -0
  51. data/sorbet/rbi/gems/parallel.rbi +81 -0
  52. data/sorbet/rbi/gems/parser.rbi +920 -0
  53. data/sorbet/rbi/gems/public_suffix.rbi +103 -0
  54. data/sorbet/rbi/gems/puma.rbi +586 -0
  55. data/sorbet/rbi/gems/rack-test.rbi +161 -0
  56. data/sorbet/rbi/gems/rack.rbi +634 -0
  57. data/sorbet/rbi/gems/rails-dom-testing.rbi +67 -0
  58. data/sorbet/rbi/gems/rails-html-sanitizer.rbi +91 -0
  59. data/sorbet/rbi/gems/railties.rbi +834 -0
  60. data/sorbet/rbi/gems/rainbow.rbi +117 -0
  61. data/sorbet/rbi/gems/rake.rbi +269 -0
  62. data/sorbet/rbi/gems/regexp_parser.rbi +912 -0
  63. data/sorbet/rbi/gems/rubocop.rbi +7232 -0
  64. data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
  65. data/sorbet/rbi/gems/rubyzip.rbi +546 -0
  66. data/sorbet/rbi/gems/selenium-webdriver.rbi +1450 -0
  67. data/sorbet/rbi/gems/simplecov-html.rbi +30 -0
  68. data/sorbet/rbi/gems/simplecov.rbi +189 -0
  69. data/sorbet/rbi/gems/site_ruby.rbi +265 -0
  70. data/sorbet/rbi/gems/sprockets-rails.rbi +105 -0
  71. data/sorbet/rbi/gems/sprockets.rbi +753 -0
  72. data/sorbet/rbi/gems/sqlite3.rbi +353 -0
  73. data/sorbet/rbi/gems/thor.rbi +579 -0
  74. data/sorbet/rbi/gems/thread_safe.rbi +81 -0
  75. data/sorbet/rbi/gems/tzinfo.rbi +405 -0
  76. data/sorbet/rbi/gems/unicode-display_width.rbi +16 -0
  77. data/sorbet/rbi/gems/webdrivers.rbi +155 -0
  78. data/sorbet/rbi/gems/xpath.rbi +158 -0
  79. data/sorbet/rbi/gems/yard.rbi +1159 -0
  80. data/sorbet/rbi/hidden-definitions/errors.txt +14957 -0
  81. data/sorbet/rbi/hidden-definitions/hidden.rbi +24898 -0
  82. data/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
  83. data/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +938 -0
  84. data/sorbet/rbi/sorbet-typed/lib/actionview/all/actionview.rbi +314 -0
  85. data/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +425 -0
  86. data/sorbet/rbi/sorbet-typed/lib/activerecord/>=5.2/activerecord.rbi +17 -0
  87. data/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +1425 -0
  88. data/sorbet/rbi/sorbet-typed/lib/activerecord/~>6.0.0/activerecord.rbi +475 -0
  89. data/sorbet/rbi/sorbet-typed/lib/activestorage/>=6.0.0/activestorage.rbi +19 -0
  90. data/sorbet/rbi/sorbet-typed/lib/activestorage/all/activestorage.rbi +173 -0
  91. data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +23 -0
  92. data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +858 -0
  93. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8684 -0
  94. data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +108 -0
  95. data/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +25 -0
  96. data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +254 -0
  97. data/sorbet/rbi/sorbet-typed/lib/ruby/all/gem.rbi +4222 -0
  98. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
  99. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
  100. data/sorbet/rbi/todo.rbi +20 -0
  101. data/titleist.gemspec +3 -14
  102. metadata +96 -155
  103. data/.travis.yml +0 -45
  104. data/app/controllers/.keep +0 -0
  105. data/app/helpers/.keep +0 -0
  106. data/app/helpers/titleist_helper.rb +0 -47
  107. data/app/mailers/.keep +0 -0
  108. data/app/models/.keep +0 -0
  109. data/app/views/.keep +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42df92f4c0e44490b8c02b56ff36ad5c3e66dad1ec9ed63c8fb59179e54806ae
4
- data.tar.gz: 1addf48188b2446fb2dddd3bb353f40c9a279b9cd9f65034a6448e94db12815a
3
+ metadata.gz: 78c5ab14076bcd7fcfaff5793bcd1337d77256ef5c96ab0e42bb207f0ad737d4
4
+ data.tar.gz: 7cb45dd51d98dfe9af8ffd38c185705c18e50bac5f7f1070cff15a49df5e344e
5
5
  SHA512:
6
- metadata.gz: 7f737f1811c17b6122d0b0efc54b27914d63ade1543e6cd2b5e3075ed3e8c74b50251b2d753d1c2a7871f151956a32fb474f7a1258ee793aa8924d776800db32
7
- data.tar.gz: 76b42a7bc0047d9f3930c829027e8692eb89584a4f10ac9d88f251622f1e5180efac6a9d227d30dbf7a6374647b6673c1e2847c6d103a26e58b93ae3085249da
6
+ metadata.gz: '09c43fafdcd01c5cafe0d0c9bb66edb80223e3c911558edf061ade5033205007ab389a5c2a3157abb76d9906f05f868d56d866dc190e7888bfdaa846bc1d618d'
7
+ data.tar.gz: 5ed29f28e9d91b4637040fa2746151995e7d608f8d3ae45fc4dfd7c9f13f41a41ca4be7d4a5820f8855930a858441a2000bae9f1a7242139bd8447947594d916
@@ -0,0 +1,19 @@
1
+ name: Tests
2
+ on: [push]
3
+ jobs:
4
+ test:
5
+ name: Automated Tests
6
+ runs-on: ubuntu-latest
7
+ steps:
8
+ - name: Checkout Latest Source Code
9
+ uses: actions/checkout@v1
10
+ - name: Install Ruby
11
+ uses: actions/setup-ruby@v1
12
+ with:
13
+ ruby-version: 2.6.x
14
+ - name: Install SQLite
15
+ run: sudo apt-get install -yy libsqlite3-dev
16
+ - name: Install bundled dependencies
17
+ run: bundle install
18
+ - name: Build the gem and run automated tests
19
+ run: bundle exec rake
data/.gitignore CHANGED
@@ -1,8 +1,7 @@
1
1
  .bundle/
2
2
  log/*.log
3
3
  pkg/
4
- test/dummy/db/*.sqlite3
5
- test/dummy/db/*.sqlite3-journal
4
+ test/dummy/db/*.sqlite*
6
5
  test/dummy/log/*.log
7
6
  test/dummy/tmp/
8
7
  test/examples.txt
@@ -9,8 +9,33 @@ Style/StringLiterals:
9
9
  Style/FrozenStringLiteralComment:
10
10
  Enabled: false
11
11
 
12
- Metrics/LineLength:
12
+ Layout/LineLength:
13
13
  Exclude:
14
14
  - titleist.gemspec
15
15
  - test/test_helper.rb
16
16
  - bin/rails
17
+
18
+ Style/FormatStringToken:
19
+ Exclude:
20
+ - lib/titleist/title.rb
21
+
22
+ Layout/EmptyLinesAroundAttributeAccessor:
23
+ Enabled: true
24
+ Layout/SpaceAroundMethodCallOperator:
25
+ Enabled: true
26
+ Lint/DeprecatedOpenSSLConstant:
27
+ Enabled: true
28
+ Lint/RaiseException:
29
+ Enabled: true
30
+ Lint/StructNewOverride:
31
+ Enabled: true
32
+ Style/ExponentialNotation:
33
+ Enabled: true
34
+ Style/HashEachMethods:
35
+ Enabled: true
36
+ Style/HashTransformKeys:
37
+ Enabled: true
38
+ Style/HashTransformValues:
39
+ Enabled: true
40
+ Style/SlicingWithRange:
41
+ Enabled: true
@@ -1 +1 @@
1
- 2.6.2
1
+ 2.6.5
data/Gemfile CHANGED
@@ -9,6 +9,17 @@ gemspec
9
9
  # your gemspec. These might include edge Rails or gems from your path or
10
10
  # Git. Remember to move these dependencies to your gemspec before releasing
11
11
  # your gem to rubygems.org.
12
+ gem 'capybara', '~> 3'
13
+ gem 'codeclimate-test-reporter'
14
+ gem 'minitest', '~> 5'
15
+ gem 'mocha', '~> 1'
16
+ gem 'puma', '~> 4'
17
+ gem 'rails', '~> 6.0.0'
18
+ gem 'rubocop', '~> 0'
19
+ gem 'selenium-webdriver', '~> 3'
20
+ gem 'sqlite3', '~> 1.4'
21
+ gem 'webdrivers', '~> 4'
22
+ gem 'yard', '~> 0.9'
12
23
 
13
- # To use a debugger
14
- # gem 'byebug', group: [:development, :test]
24
+ gem 'sorbet', '~> 0'
25
+ gem 'sord', '~> 2'
data/README.md CHANGED
@@ -1,13 +1,32 @@
1
1
  # Titleist
2
2
 
3
- [![Build Status](https://travis-ci.org/tubbo/titleist.svg?branch=master)](https://travis-ci.org/tubbo/titleist)
4
- [![Code Climate](https://codeclimate.com/github/tubbo/titleist/badges/gpa.svg)](https://codeclimate.com/github/tubbo/titleist)
3
+ ![Improve Your Swing](https://www.titleist.com/build/assets/images/logo-titleist.svg)
4
+
5
+ [![Tests](https://github.com/tubbo/titleist/workflows/Tests/badge.svg)](https://github.com/tubbo/titleist/actions)
6
+ [![Maintainability](https://codeclimate.com/github/tubbo/titleist/badges/gpa.svg)](https://codeclimate.com/github/tubbo/titleist)
5
7
  [![Test Coverage](https://codeclimate.com/github/tubbo/titleist/badges/coverage.svg)](https://codeclimate.com/github/tubbo/titleist/coverage)
6
- [![Issue Count](https://codeclimate.com/github/tubbo/titleist/badges/issue_count.svg)](https://codeclimate.com/github/tubbo/titleist)
7
- [![Issue aount](https://codeclimate.com/github/tubbo/titleist/badges/issue_count.svg)](https://codeclimate.com/github/tubbo/titleist)
8
8
 
9
- A powerful title helper for [Rails][] apps that uses/abuses [i18n][] and allows
10
- for maximum override potential.
9
+ A powerful title helper for [Rails][] apps using [i18n][], with the
10
+ ability to override practically everything.
11
+
12
+ ## Installation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ ```ruby
17
+ gem 'titleist'
18
+ ```
19
+
20
+ And then run:
21
+
22
+ ```bash
23
+ $ bundle
24
+ ```
25
+
26
+ Or install it yourself as:
27
+ ```bash
28
+ $ gem install titleist
29
+ ```
11
30
 
12
31
  ## Usage
13
32
 
@@ -18,24 +37,34 @@ your `` tag.</div> </td> </tr><tr> <td id="d2h-027470-1615" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1615"> <div class="line-num1">18</div> <div class="line-num2">37</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">rails generate titleist</span> </div> </td> </tr><tr> <td id="d2h-027470-1626" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1626"> <div class="line-num1">19</div> <div class="line-num2">38</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">```</span> </div> </td> </tr><tr> <td id="d2h-027470-1637" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1637"> <div class="line-num1">20</div> <div class="line-num2">39</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-1648" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-1648"> <div class="line-num1"></div> <div class="line-num2">40</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">### Configuration</span> </div> </td> </tr><tr> <td id="d2h-027470-1659" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-1659"> <div class="line-num1"></div> <div class="line-num2">41</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-1670" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1670"> <div class="line-num1">21</div> <div class="line-num2">42</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">Edit your **config/locales/titleist.en.yml** file to add your own titles and format:</span> </div> </td> </tr><tr> <td id="d2h-027470-1681" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1681"> <div class="line-num1">22</div> <div class="line-num2">43</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-1692" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1692"> <div class="line-num1">23</div> <div class="line-num2">44</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">```yaml</span> </div> </td> </tr><tr> <td id="d2h-027470-1703" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1703"> <div class="line-num1">24</div> <div class="line-num2">45</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">en:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">25</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> <del>titles</del>:</span> </div> </td> </tr><tr> <td id="d2h-027470-1725" class="d2h-code-linenumber d2h-del"><a href="#d2h-027470-1725"> <div class="line-num1">26</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> application: My Application</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">46</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> <ins>titleist</ins>:</span> </div> </td> </tr><tr> <td id="d2h-027470-1747" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1747"> <div class="line-num1">27</div> <div class="line-num2">47</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> format: '%{page} | %{app}'</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">28</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del> posts</del>:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">29</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del> index</del>:<del> View All Posts</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">30</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> <del>show</del>: <del>View</del> <del>Post</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">48</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins> layouts</ins>:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">49</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins> application</ins>:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">50</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> <ins>title</ins>: <ins>My</ins> <ins>Application</ins></span> </div> </td> </tr><tr> <td id="d2h-027470-1824" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-1824"> <div class="line-num1"></div> <div class="line-num2">51</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> posts:</span> </div> </td> </tr><tr> <td id="d2h-027470-1835" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-1835"> <div class="line-num1"></div> <div class="line-num2">52</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> index:</span> </div> </td> </tr><tr> <td id="d2h-027470-1846" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-1846"> <div class="line-num1"></div> <div class="line-num2">53</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> title: View All Posts</span> </div> </td> </tr><tr> <td id="d2h-027470-1857" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-1857"> <div class="line-num1"></div> <div class="line-num2">54</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> show:</span> </div> </td> </tr><tr> <td id="d2h-027470-1868" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-1868"> <div class="line-num1"></div> <div class="line-num2">55</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> title: View Post</span> </div> </td> </tr><tr> <td id="d2h-027470-1879" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1879"> <div class="line-num1">31</div> <div class="line-num2">56</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">```</span> </div> </td> </tr><tr> <td id="d2h-027470-1890" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1890"> <div class="line-num1">32</div> <div class="line-num2">57</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-1901" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-1901"> <div class="line-num1"></div> <div class="line-num2">58</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">### Helpers</span> </div> </td> </tr><tr> <td id="d2h-027470-1912" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-1912"> <div class="line-num1"></div> <div class="line-num2">59</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-1923" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1923"> <div class="line-num1">33</div> <div class="line-num2">60</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">You can also use our fancy title helpers to generate your own titles.</span> </div> </td> </tr><tr> <td id="d2h-027470-1934" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1934"> <div class="line-num1">34</div> <div class="line-num2">61</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-1945" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1945"> <div class="line-num1">35</div> <div class="line-num2">62</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">For the full monty:</span> </div> </td> </tr><tr> <td id="d2h-027470-1956" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1956"> <div class="line-num1">36</div> <div class="line-num2">63</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-1967" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1967"> <div class="line-num1">37</div> <div class="line-num2">64</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">```erb</span> </div> </td> </tr><tr> <td id="d2h-027470-1978" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-1978"> <div class="line-num1">38</div> <div class="line-num2">65</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><title><%= title %></title></span> </div> </td> </tr><tr> <td id="d2h-027470-1989" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-1989"> <div class="line-num1"></div> <div class="line-num2">66</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><!-- or... %></span> </div> </td> </tr><tr> <td id="d2h-027470-2000" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2000"> <div class="line-num1"></div> <div class="line-num2">67</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><%= title_tag %></span> </div> </td> </tr><tr> <td id="d2h-027470-2011" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2011"> <div class="line-num1">39</div> <div class="line-num2">68</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">```</span> </div> </td> </tr><tr> <td id="d2h-027470-2022" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2022"> <div class="line-num1">40</div> <div class="line-num2">69</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-2033" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2033"> <div class="line-num1">41</div> <div class="line-num2">70</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">Page titles only:</span> </div> </td> </tr> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -50,34 +79,76 @@ Or the app title only:</div> </td> </tr><tr> <td id="d2h-027470-2050" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2050"> <div class="line-num1">50</div> <div class="line-num2">79</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><p>Copyright &copy; 2015 <%= app_title %></p></span> </div> </td> </tr><tr> <td id="d2h-027470-2061" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2061"> <div class="line-num1">51</div> <div class="line-num2">80</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">```</span> </div> </td> </tr><tr> <td id="d2h-027470-2072" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2072"> <div class="line-num1">52</div> <div class="line-num2">81</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">53</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>##</del> <del>Installation</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">82</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins>These</ins> <ins>methods are also available in the controller layer.</ins></span> </div> </td> </tr><tr> <td id="d2h-027470-2105" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2105"> <div class="line-num1">54</div> <div class="line-num2">83</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">55</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>Add</del> <del>this line to your application's Gemfile:</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">84</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins>###</ins> <ins>Context</ins></span> </div> </td> </tr><tr> <td id="d2h-027470-2138" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2138"> <div class="line-num1"></div> <div class="line-num2">85</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-2149" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2149"> <div class="line-num1"></div> <div class="line-num2">86</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">You can provide title context in your controllers for displaying things</span> </div> </td> </tr><tr> <td id="d2h-027470-2160" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2160"> <div class="line-num1"></div> <div class="line-num2">87</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">like model data in the title.</span> </div> </td> </tr><tr> <td id="d2h-027470-2171" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2171"> <div class="line-num1">56</div> <div class="line-num2">88</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-2182" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2182"> <div class="line-num1">57</div> <div class="line-num2">89</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">```ruby</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">58</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>gem</del> <del>'titleist'</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">90</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins>class</ins> <ins>PostsController < ApplicationController</ins></span> </div> </td> </tr><tr> <td id="d2h-027470-2215" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2215"> <div class="line-num1"></div> <div class="line-num2">91</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> def show</span> </div> </td> </tr><tr> <td id="d2h-027470-2226" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2226"> <div class="line-num1"></div> <div class="line-num2">92</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> @post = Post.find params[:id]</span> </div> </td> </tr><tr> <td id="d2h-027470-2237" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2237"> <div class="line-num1"></div> <div class="line-num2">93</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> title[:post] = @post.title</span> </div> </td> </tr><tr> <td id="d2h-027470-2248" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2248"> <div class="line-num1"></div> <div class="line-num2">94</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-027470-2259" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2259"> <div class="line-num1"></div> <div class="line-num2">95</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">end</span> </div> </td> </tr><tr> <td id="d2h-027470-2270" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2270"> <div class="line-num1">59</div> <div class="line-num2">96</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">```</span> </div> </td> </tr><tr> <td id="d2h-027470-2281" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2281"> <div class="line-num1">60</div> <div class="line-num2">97</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">61</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>And</del> <del>then</del> <del>execute:</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">98</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins>By</ins> <ins>default,</ins> <ins>all `params` are added to this context, and they can be read</ins></span> </div> </td> </tr><tr> <td id="d2h-027470-2314" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2314"> <div class="line-num1"></div> <div class="line-num2">99</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">by their keys in your i18n translations:</span> </div> </td> </tr><tr> <td id="d2h-027470-2325" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2325"> <div class="line-num1">62</div> <div class="line-num2">100</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">63</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn">```<del>bash</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">64</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>$ bundle</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">101</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">```<ins>yaml</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">102</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins>en:</ins></span> </div> </td> </tr><tr> <td id="d2h-027470-2380" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2380"> <div class="line-num1"></div> <div class="line-num2">103</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> posts:</span> </div> </td> </tr><tr> <td id="d2h-027470-2391" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2391"> <div class="line-num1"></div> <div class="line-num2">104</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> show:</span> </div> </td> </tr><tr> <td id="d2h-027470-2402" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2402"> <div class="line-num1"></div> <div class="line-num2">105</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> title: '%{post} (ID: %{post_id})'</span> </div> </td> </tr><tr> <td id="d2h-027470-2413" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2413"> <div class="line-num1">65</div> <div class="line-num2">106</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">```</span> </div> </td> </tr><tr> <td id="d2h-027470-2424" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2424"> <div class="line-num1">66</div> <div class="line-num2">107</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">67</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>Or</del> <del>install it yourself as:</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">68</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>```bash</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">69</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>$</del> <del>gem</del> <del>install</del> <del>titleist</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">108</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins>###</ins> <ins>Overriding</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">109</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">110</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins>The</ins> <ins>entire</ins> <ins>page</ins> <ins>title can be overridden if you wish:</ins></span> </div> </td> </tr><tr> <td id="d2h-027470-2501" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2501"> <div class="line-num1"></div> <div class="line-num2">111</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-2512" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2512"> <div class="line-num1"></div> <div class="line-num2">112</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">```ruby</span> </div> </td> </tr><tr> <td id="d2h-027470-2523" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2523"> <div class="line-num1"></div> <div class="line-num2">113</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">class PostsController < ApplicationController</span> </div> </td> </tr><tr> <td id="d2h-027470-2534" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2534"> <div class="line-num1"></div> <div class="line-num2">114</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> def show</span> </div> </td> </tr><tr> <td id="d2h-027470-2545" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2545"> <div class="line-num1"></div> <div class="line-num2">115</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> @post = Post.find params[:id]</span> </div> </td> </tr><tr> <td id="d2h-027470-2556" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2556"> <div class="line-num1"></div> <div class="line-num2">116</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> title.page = @post.title</span> </div> </td> </tr><tr> <td id="d2h-027470-2567" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2567"> <div class="line-num1"></div> <div class="line-num2">117</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-027470-2578" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2578"> <div class="line-num1"></div> <div class="line-num2">118</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">end</span> </div> </td> </tr><tr> <td id="d2h-027470-2589" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2589"> <div class="line-num1"></div> <div class="line-num2">119</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">```</span> </div> </td> </tr><tr> <td id="d2h-027470-2600" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2600"> <div class="line-num1"></div> <div class="line-num2">120</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-2611" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2611"> <div class="line-num1"></div> <div class="line-num2">121</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">Or the app title:</span> </div> </td> </tr><tr> <td id="d2h-027470-2622" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2622"> <div class="line-num1"></div> <div class="line-num2">122</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-2633" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2633"> <div class="line-num1"></div> <div class="line-num2">123</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">```ruby</span> </div> </td> </tr><tr> <td id="d2h-027470-2644" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2644"> <div class="line-num1"></div> <div class="line-num2">124</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">class PostsController < ApplicationController</span> </div> </td> </tr><tr> <td id="d2h-027470-2655" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2655"> <div class="line-num1"></div> <div class="line-num2">125</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> def show</span> </div> </td> </tr><tr> <td id="d2h-027470-2666" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2666"> <div class="line-num1"></div> <div class="line-num2">126</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> @post = Post.find params[:id]</span> </div> </td> </tr><tr> <td id="d2h-027470-2677" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2677"> <div class="line-num1"></div> <div class="line-num2">127</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> title.page = @post.title</span> </div> </td> </tr><tr> <td id="d2h-027470-2688" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2688"> <div class="line-num1"></div> <div class="line-num2">128</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> title.app = current_site.name</span> </div> </td> </tr><tr> <td id="d2h-027470-2699" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2699"> <div class="line-num1"></div> <div class="line-num2">129</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-027470-2710" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2710"> <div class="line-num1"></div> <div class="line-num2">130</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">end</span> </div> </td> </tr><tr> <td id="d2h-027470-2721" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2721"> <div class="line-num1">70</div> <div class="line-num2">131</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">```</span> </div> </td> </tr><tr> <td id="d2h-027470-2732" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2732"> <div class="line-num1">71</div> <div class="line-num2">132</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-2743" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2743"> <div class="line-num1"></div> <div class="line-num2">133</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">### Defaults</span> </div> </td> </tr><tr> <td id="d2h-027470-2754" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2754"> <div class="line-num1"></div> <div class="line-num2">134</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-2765" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2765"> <div class="line-num1"></div> <div class="line-num2">135</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">Titelist attempts to derive default values if you do not configure them</span> </div> </td> </tr><tr> <td id="d2h-027470-2776" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2776"> <div class="line-num1"></div> <div class="line-num2">136</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">in locales. For example, if the `.posts.new.title` translation can't be</span> </div> </td> </tr><tr> <td id="d2h-027470-2787" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2787"> <div class="line-num1"></div> <div class="line-num2">137</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">found, the default title would be `"New Post"`, based on the name of the</span> </div> </td> </tr><tr> <td id="d2h-027470-2798" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2798"> <div class="line-num1"></div> <div class="line-num2">138</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">controller and action.</span> </div> </td> </tr><tr> <td id="d2h-027470-2809" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2809"> <div class="line-num1"></div> <div class="line-num2">139</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-2820" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2820"> <div class="line-num1"></div> <div class="line-num2">140</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">The default title of your app is the name of the application module,</span> </div> </td> </tr><tr> <td id="d2h-027470-2831" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2831"> <div class="line-num1"></div> <div class="line-num2">141</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">which is also what Rails considers to be the "app name".</span> </div> </td> </tr><tr> <td id="d2h-027470-2842" class="d2h-code-linenumber d2h-ins"><a href="#d2h-027470-2842"> <div class="line-num1"></div> <div class="line-num2">142</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-2853" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2853"> <div class="line-num1">72</div> <div class="line-num2">143</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">## Contributing</span> </div> </td> </tr><tr> <td id="d2h-027470-2864" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2864"> <div class="line-num1">73</div> <div class="line-num2">144</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-2875" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2875"> <div class="line-num1">74</div> <div class="line-num2">145</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">Please include tests and submit changes in a pull request. Read our</span> </div> </td> </tr><tr> <td id="d2h-027470-2886" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2886"> <div class="line-num1">75</div> <div class="line-num2">146</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">[Code of Conduct][] to find more information on expected behavior and</span> </div> </td> </tr><tr> <td id="d2h-027470-2897" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2897"> <div class="line-num1">76</div> <div class="line-num2">147</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">how to resolve issues. All changes to the codebase are verified using</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">77</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn">the <del>[Travis </del>CI<del>][]</del> build, and a failing build cannot be merged to</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">78</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>'master'. In </del>addition, Travis is responsible for building and pushing</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">79</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>new gem </del>versions to [RubyGems][] when a new tag is pushed to Github.</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">80</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>This </del>library follows [Semantic Versioning][] to communicate the level of</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">148</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">the CI build, and a failing build cannot be merged to<ins> 'master'. In</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">149</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">addition, Travis is responsible for building and pushing<ins> new gem</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">150</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">versions to [RubyGems][] when a new tag is pushed to Github.<ins> This</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">151</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">library follows [Semantic Versioning][] to communicate the level of</span> </div> </td> </tr><tr> <td id="d2h-027470-2996" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-2996"> <div class="line-num1">81</div> <div class="line-num2">152</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">change to end users.</span> </div> </td> </tr><tr> <td id="d2h-027470-3007" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-3007"> <div class="line-num1">82</div> <div class="line-num2">153</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-027470-3018" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-3018"> <div class="line-num1">83</div> <div class="line-num2">154</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">## License</span> </div> </td> </tr> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -87,7 +158,6 @@ The gem is available as open source under the terms of the [MIT License][].</div> </td> </tr><tr> <td id="d2h-027470-3035" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-3035"> <div class="line-num1">87</div> <div class="line-num2">158</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">[Rails]: http://rubyonrails.org</span> </div> </td> </tr><tr> <td id="d2h-027470-3046" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-3046"> <div class="line-num1">88</div> <div class="line-num2">159</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">[i18n]: http://guides.rubyonrails.org/i18n.html</span> </div> </td> </tr><tr> <td id="d2h-027470-3057" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-3057"> <div class="line-num1">89</div> <div class="line-num2">160</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">[Code of Conduct]: CODE_OF_CONDUCT.md</span> </div> </td> </tr><tr> <td id="d2h-027470-3068" class="d2h-code-linenumber d2h-del"><a href="#d2h-027470-3068"> <div class="line-num1">90</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn">[Travis CI]: http://travis-ci.org</span> </div> </td> </tr><tr> <td id="d2h-027470-3079" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-3079"> <div class="line-num1">91</div> <div class="line-num2">161</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">[RubyGems]: http://rubygems.org</span> </div> </td> </tr><tr> <td id="d2h-027470-3090" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-3090"> <div class="line-num1">92</div> <div class="line-num2">162</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">[Semantic Versioning]: http://semver.org</span> </div> </td> </tr><tr> <td id="d2h-027470-3101" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-027470-3101"> <div class="line-num1">93</div> <div class="line-num2">163</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">[MIT License]: MIT-LICENSE</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-485802" class="d2h-file-wrapper" data-lang=""> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-485802">data/Rakefile</a></span> <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -1,7 +1,7 @@</div> </td> </tr><tr> <td id="d2h-485802-3135" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3135"> <div class="line-num1">1</div> <div class="line-num2">1</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">require 'bundler/setup'</span> </div> </td> </tr><tr> <td id="d2h-485802-3146" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3146"> <div class="line-num1"></div> <div class="line-num2">2</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">require 'bundler/gem_tasks'</span> </div> </td> </tr><tr> <td id="d2h-485802-3157" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3157"> <div class="line-num1">2</div> <div class="line-num2">3</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">require 'yard'</span> </div> </td> </tr><tr> <td id="d2h-485802-3168" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3168"> <div class="line-num1">3</div> <div class="line-num2">4</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">require 'rubocop/rake_task'</span> </div> </td> </tr><tr> <td id="d2h-485802-3179" class="d2h-code-linenumber d2h-del"><a href="#d2h-485802-3179"> <div class="line-num1">4</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn">require 'travis/release'</span> </div> </td> </tr><tr> <td id="d2h-485802-3190" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3190"> <div class="line-num1">5</div> <div class="line-num2">5</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">require 'rake/testtask'</span> </div> </td> </tr><tr> <td id="d2h-485802-3201" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3201"> <div class="line-num1">6</div> <div class="line-num2">6</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-485802-3212" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3212"> <div class="line-num1">7</div> <div class="line-num2">7</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)</span> </div> </td> </tr> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -10,13 +10,24 @@ load 'rails/tasks/engine.rake'</div> </td> </tr><tr> <td id="d2h-485802-3229" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3229"> <div class="line-num1">10</div> <div class="line-num2">10</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">load 'rails/tasks/statistics.rake'</span> </div> </td> </tr><tr> <td id="d2h-485802-3240" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3240"> <div class="line-num1">11</div> <div class="line-num2">11</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-485802-3251" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3251"> <div class="line-num1">12</div> <div class="line-num2">12</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">desc 'Generate documentation'</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">13</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>YARD::Rake::YardocTask.new</del> :doc</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">13</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins>task</ins> :doc<ins> do</ins></span> </div> </td> </tr><tr> <td id="d2h-485802-3284" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3284"> <div class="line-num1"></div> <div class="line-num2">14</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> sh 'bundle exec sord rbi/sord.rbi'</span> </div> </td> </tr><tr> <td id="d2h-485802-3295" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3295"> <div class="line-num1"></div> <div class="line-num2">15</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">end</span> </div> </td> </tr><tr> <td id="d2h-485802-3306" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3306"> <div class="line-num1">14</div> <div class="line-num2">16</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-485802-3317" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3317"> <div class="line-num1">15</div> <div class="line-num2">17</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">desc 'Run lint checks'</span> </div> </td> </tr><tr> <td id="d2h-485802-3328" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3328"> <div class="line-num1">16</div> <div class="line-num2">18</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">RuboCop::RakeTask.new :lint</span> </div> </td> </tr><tr> <td id="d2h-485802-3339" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3339"> <div class="line-num1">17</div> <div class="line-num2">19</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">18</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>#</del> <del>Release</del> <del>automatically with tag pushes to GitHub via Travis CI on</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">19</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>#</del> <del>to</del> <del>RubyGems.org</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">20</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>Travis::Release::Task</del>.<del>new</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">20</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins>Rake::TestTask.new(:test)</ins> <ins>do</ins> <ins>|t|</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">21</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins> t.libs</ins> <ins><<</ins> <ins>"test"</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">22</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins> t</ins>.<ins>libs << "lib"</ins></span> </div> </td> </tr><tr> <td id="d2h-485802-3416" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3416"> <div class="line-num1"></div> <div class="line-num2">23</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> t.test_files = FileList["test/**/*_test.rb"]</span> </div> </td> </tr><tr> <td id="d2h-485802-3427" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3427"> <div class="line-num1"></div> <div class="line-num2">24</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> t.verbose = false</span> </div> </td> </tr><tr> <td id="d2h-485802-3438" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3438"> <div class="line-num1"></div> <div class="line-num2">25</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> t.warning = false</span> </div> </td> </tr><tr> <td id="d2h-485802-3449" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3449"> <div class="line-num1"></div> <div class="line-num2">26</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">end</span> </div> </td> </tr><tr> <td id="d2h-485802-3460" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-485802-3460"> <div class="line-num1">21</div> <div class="line-num2">27</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">22</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"><del>Bundler::GemHelper.install_tasks</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">28</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><ins>desc 'Run type checks'</ins></span> </div> </td> </tr><tr> <td id="d2h-485802-3493" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3493"> <div class="line-num1"></div> <div class="line-num2">29</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">task :check do</span> </div> </td> </tr><tr> <td id="d2h-485802-3504" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3504"> <div class="line-num1"></div> <div class="line-num2">30</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> sh 'bundle exec srb tc'</span> </div> </td> </tr><tr> <td id="d2h-485802-3515" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3515"> <div class="line-num1"></div> <div class="line-num2">31</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">end</span> </div> </td> </tr><tr> <td id="d2h-485802-3526" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3526"> <div class="line-num1"></div> <div class="line-num2">32</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-485802-3537" class="d2h-code-linenumber d2h-ins"><a href="#d2h-485802-3537"> <div class="line-num1"></div> <div class="line-num2">33</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">task default: %i[doc lint test build]</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-286690" class="d2h-file-wrapper" data-lang="md"> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-286690">data/docs/index.md</a></span> <span class="d2h-tag d2h-added d2h-added-tag">ADDED</span></span> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -0,0 +1,7 @@</div> </td> </tr><tr> <td id="d2h-286690-3571" class="d2h-code-linenumber d2h-ins"><a href="#d2h-286690-3571"> <div class="line-num1"></div> <div class="line-num2">1</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># Titleist</span> </div> </td> </tr><tr> <td id="d2h-286690-3582" class="d2h-code-linenumber d2h-ins"><a href="#d2h-286690-3582"> <div class="line-num1"></div> <div class="line-num2">2</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-286690-3593" class="d2h-code-linenumber d2h-ins"><a href="#d2h-286690-3593"> <div class="line-num1"></div> <div class="line-num2">3</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">![Improve Your Swing](https://www.titleist.com/build/assets/images/logo-titleist.svg)</span> </div> </td> </tr><tr> <td id="d2h-286690-3604" class="d2h-code-linenumber d2h-ins"><a href="#d2h-286690-3604"> <div class="line-num1"></div> <div class="line-num2">4</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-286690-3615" class="d2h-code-linenumber d2h-ins"><a href="#d2h-286690-3615"> <div class="line-num1"></div> <div class="line-num2">5</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">## A powerful `<title>` helper for [Ruby on Rails](https://rubyonrails.org) applications.</span> </div> </td> </tr><tr> <td id="d2h-286690-3626" class="d2h-code-linenumber d2h-ins"><a href="#d2h-286690-3626"> <div class="line-num1"></div> <div class="line-num2">6</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-286690-3637" class="d2h-code-linenumber d2h-ins"><a href="#d2h-286690-3637"> <div class="line-num1"></div> <div class="line-num2">7</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">### Check out the [README](https://github.com/tubbo/titleist#readme) for more information.</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-726981" class="d2h-file-wrapper" data-lang="rb"> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-726981">data/lib/generators/titleist/titleist_generator.rb</a></span> <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -1,11 +1,14 @@</div> </td> </tr><tr> <td id="d2h-726981-3671" class="d2h-code-linenumber d2h-ins"><a href="#d2h-726981-3671"> <div class="line-num1"></div> <div class="line-num2">1</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># typed: strict</span> </div> </td> </tr><tr> <td id="d2h-726981-3682" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-726981-3682"> <div class="line-num1">1</div> <div class="line-num2">2</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"># Generate initial files for the gem to work.</span> </div> </td> </tr><tr> <td id="d2h-726981-3693" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-726981-3693"> <div class="line-num1">2</div> <div class="line-num2">3</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">class TitleistGenerator < Rails::Generators::Base</span> </div> </td> </tr><tr> <td id="d2h-726981-3704" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-726981-3704"> <div class="line-num1">3</div> <div class="line-num2">4</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> source_root File.expand_path('templates', __dir__)</span> </div> </td> </tr><tr> <td id="d2h-726981-3715" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-726981-3715"> <div class="line-num1">4</div> <div class="line-num2">5</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-726981-3726" class="d2h-code-linenumber d2h-ins"><a href="#d2h-726981-3726"> <div class="line-num1"></div> <div class="line-num2">6</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # @return [nil]</span> </div> </td> </tr><tr> <td id="d2h-726981-3737" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-726981-3737"> <div class="line-num1">5</div> <div class="line-num2">7</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> def copy_locale</span> </div> </td> </tr><tr> <td id="d2h-726981-3748" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-726981-3748"> <div class="line-num1">6</div> <div class="line-num2">8</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> template 'locale.yml.erb', 'config/locales/titleist.en.yml'</span> </div> </td> </tr><tr> <td id="d2h-726981-3759" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-726981-3759"> <div class="line-num1">7</div> <div class="line-num2">9</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-726981-3770" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-726981-3770"> <div class="line-num1">8</div> <div class="line-num2">10</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-726981-3781" class="d2h-code-linenumber d2h-ins"><a href="#d2h-726981-3781"> <div class="line-num1"></div> <div class="line-num2">11</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # @return [nil]</span> </div> </td> </tr><tr> <td id="d2h-726981-3792" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-726981-3792"> <div class="line-num1">9</div> <div class="line-num2">12</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> def update_default_application_layout</span> </div> </td> </tr><tr> <td id="d2h-726981-3803" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-726981-3803"> <div class="line-num1">10</div> <div class="line-num2">13</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> gsub_file(</span> </div> </td> </tr><tr> <td id="d2h-726981-3814" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-726981-3814"> <div class="line-num1">11</div> <div class="line-num2">14</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> 'app/views/layouts/application.html.erb',</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-692931" class="d2h-file-wrapper" data-lang="rb"> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-692931">data/lib/titleist.rb</a></span> <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -1,4 +1,6 @@</div> </td> </tr><tr> <td id="d2h-692931-3848" class="d2h-code-linenumber d2h-ins"><a href="#d2h-692931-3848"> <div class="line-num1"></div> <div class="line-num2">1</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># typed: strict</span> </div> </td> </tr><tr> <td id="d2h-692931-3859" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-3859"> <div class="line-num1">1</div> <div class="line-num2">2</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">require 'active_support/all'</span> </div> </td> </tr><tr> <td id="d2h-692931-3870" class="d2h-code-linenumber d2h-ins"><a href="#d2h-692931-3870"> <div class="line-num1"></div> <div class="line-num2">3</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">require 'sorbet-runtime'</span> </div> </td> </tr><tr> <td id="d2h-692931-3881" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-3881"> <div class="line-num1">2</div> <div class="line-num2">4</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-692931-3892" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-3892"> <div class="line-num1">3</div> <div class="line-num2">5</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">require 'titleist/version'</span> </div> </td> </tr><tr> <td id="d2h-692931-3903" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-3903"> <div class="line-num1">4</div> <div class="line-num2">6</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">require 'titleist/engine'</span> </div> </td> </tr> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -10,15 +12,16 @@ require 'titleist/engine'</div> </td> </tr><tr> <td id="d2h-692931-3920" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-3920"> <div class="line-num1">10</div> <div class="line-num2">12</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">#</span> </div> </td> </tr><tr> <td id="d2h-692931-3931" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-3931"> <div class="line-num1">11</div> <div class="line-num2">13</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"># @example Setting a title</span> </div> </td> </tr><tr> <td id="d2h-692931-3942" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-3942"> <div class="line-num1">12</div> <div class="line-num2">14</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"># en:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">13</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"># <del>titles</del>:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">14</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"># <del>application</del>: <del>My</del> <del>App</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">15</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn">#<del> format</del>:<del> '%{app} | %{page}'</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">16</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"># <del>pages</del>:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">17</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn">#<del> index</del>:<del> Home</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">18</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"># <del>posts</del>:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">19</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"># <del>index</del>: <del>All Posts</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">20</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn">#<del> show</del>:<del> "Post %{name}"</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">21</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn">#<del> new</del>:<del> New Post</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">15</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># <ins>titleist</ins>:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">16</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># <ins>format</ins>: <ins>'%{app}</ins> <ins>| %{page}' # this is the default</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">17</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">#<ins> application</ins>:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">18</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># <ins>title</ins>:<ins> My App</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">19</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">#<ins> pages</ins>:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">20</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># <ins>index</ins>:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">21</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># <ins>title</ins>: <ins>Home</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">22</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">#<ins> posts</ins>:</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">23</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">#<ins> show</ins>:</span> </div> </td> </tr><tr> <td id="d2h-692931-4151" class="d2h-code-linenumber d2h-ins"><a href="#d2h-692931-4151"> <div class="line-num1"></div> <div class="line-num2">24</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># title: "Post %{name}"</span> </div> </td> </tr><tr> <td id="d2h-692931-4162" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-4162"> <div class="line-num1">22</div> <div class="line-num2">25</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">#</span> </div> </td> </tr><tr> <td id="d2h-692931-4173" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-4173"> <div class="line-num1">23</div> <div class="line-num2">26</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"># @example Rendering the current title</span> </div> </td> </tr><tr> <td id="d2h-692931-4184" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-4184"> <div class="line-num1">24</div> <div class="line-num2">27</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"># = title_tag</span> </div> </td> </tr> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -26,4 +29,6 @@ module Titleist</div> </td> </tr><tr> <td id="d2h-692931-4201" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-4201"> <div class="line-num1">26</div> <div class="line-num2">29</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> extend ActiveSupport::Autoload</span> </div> </td> </tr><tr> <td id="d2h-692931-4212" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-4212"> <div class="line-num1">27</div> <div class="line-num2">30</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-692931-4223" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-4223"> <div class="line-num1">28</div> <div class="line-num2">31</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> autoload :Title</span> </div> </td> </tr><tr> <td id="d2h-692931-4234" class="d2h-code-linenumber d2h-ins"><a href="#d2h-692931-4234"> <div class="line-num1"></div> <div class="line-num2">32</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> autoload :Controller</span> </div> </td> </tr><tr> <td id="d2h-692931-4245" class="d2h-code-linenumber d2h-ins"><a href="#d2h-692931-4245"> <div class="line-num1"></div> <div class="line-num2">33</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> autoload :Helper</span> </div> </td> </tr><tr> <td id="d2h-692931-4256" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-692931-4256"> <div class="line-num1">29</div> <div class="line-num2">34</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">end</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-837748" class="d2h-file-wrapper" data-lang="rb"> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-837748">data/lib/titleist/controller.rb</a></span> <span class="d2h-tag d2h-added d2h-added-tag">ADDED</span></span> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -0,0 +1,36 @@</div> </td> </tr><tr> <td id="d2h-837748-4290" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4290"> <div class="line-num1"></div> <div class="line-num2">1</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># typed: false</span> </div> </td> </tr><tr> <td id="d2h-837748-4301" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4301"> <div class="line-num1"></div> <div class="line-num2">2</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-837748-4312" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4312"> <div class="line-num1"></div> <div class="line-num2">3</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">module Titleist</span> </div> </td> </tr><tr> <td id="d2h-837748-4323" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4323"> <div class="line-num1"></div> <div class="line-num2">4</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # Controller mixins for reading titles without ActionView</span> </div> </td> </tr><tr> <td id="d2h-837748-4334" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4334"> <div class="line-num1"></div> <div class="line-num2">5</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> module Controller</span> </div> </td> </tr><tr> <td id="d2h-837748-4345" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4345"> <div class="line-num1"></div> <div class="line-num2">6</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> extend ActiveSupport::Concern</span> </div> </td> </tr><tr> <td id="d2h-837748-4356" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4356"> <div class="line-num1"></div> <div class="line-num2">7</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> extend T::Sig</span> </div> </td> </tr><tr> <td id="d2h-837748-4367" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4367"> <div class="line-num1"></div> <div class="line-num2">8</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-837748-4378" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4378"> <div class="line-num1"></div> <div class="line-num2">9</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> included do</span> </div> </td> </tr><tr> <td id="d2h-837748-4389" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4389"> <div class="line-num1"></div> <div class="line-num2">10</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> helper_method :title, :app_title, :page_title</span> </div> </td> </tr><tr> <td id="d2h-837748-4400" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4400"> <div class="line-num1"></div> <div class="line-num2">11</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-837748-4411" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4411"> <div class="line-num1"></div> <div class="line-num2">12</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-837748-4422" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4422"> <div class="line-num1"></div> <div class="line-num2">13</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # Generate the full page title for this request. When output into the</span> </div> </td> </tr><tr> <td id="d2h-837748-4433" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4433"> <div class="line-num1"></div> <div class="line-num2">14</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # view, the entire title is shown. You may also call +title.page+ or</span> </div> </td> </tr><tr> <td id="d2h-837748-4444" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4444"> <div class="line-num1"></div> <div class="line-num2">15</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # +title.app+ to view individual pieces of the title.</span> </div> </td> </tr><tr> <td id="d2h-837748-4455" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4455"> <div class="line-num1"></div> <div class="line-num2">16</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> #</span> </div> </td> </tr><tr> <td id="d2h-837748-4466" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4466"> <div class="line-num1"></div> <div class="line-num2">17</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # @return [Titleist::Title]</span> </div> </td> </tr><tr> <td id="d2h-837748-4477" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4477"> <div class="line-num1"></div> <div class="line-num2">18</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> def title</span> </div> </td> </tr><tr> <td id="d2h-837748-4488" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4488"> <div class="line-num1"></div> <div class="line-num2">19</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> @title ||= Title.new(**params.to_unsafe_h.deep_symbolize_keys)</span> </div> </td> </tr><tr> <td id="d2h-837748-4499" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4499"> <div class="line-num1"></div> <div class="line-num2">20</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-837748-4510" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4510"> <div class="line-num1"></div> <div class="line-num2">21</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-837748-4521" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4521"> <div class="line-num1"></div> <div class="line-num2">22</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # Shorthand for calling +title.app+ in the view.</span> </div> </td> </tr><tr> <td id="d2h-837748-4532" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4532"> <div class="line-num1"></div> <div class="line-num2">23</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> #</span> </div> </td> </tr><tr> <td id="d2h-837748-4543" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4543"> <div class="line-num1"></div> <div class="line-num2">24</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # @return [String] i18n-configured global application title.</span> </div> </td> </tr><tr> <td id="d2h-837748-4554" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4554"> <div class="line-num1"></div> <div class="line-num2">25</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> def app_title</span> </div> </td> </tr><tr> <td id="d2h-837748-4565" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4565"> <div class="line-num1"></div> <div class="line-num2">26</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> title.app</span> </div> </td> </tr><tr> <td id="d2h-837748-4576" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4576"> <div class="line-num1"></div> <div class="line-num2">27</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-837748-4587" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4587"> <div class="line-num1"></div> <div class="line-num2">28</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-837748-4598" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4598"> <div class="line-num1"></div> <div class="line-num2">29</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # Shorthand for calling +title.page+ in the view.</span> </div> </td> </tr><tr> <td id="d2h-837748-4609" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4609"> <div class="line-num1"></div> <div class="line-num2">30</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> #</span> </div> </td> </tr><tr> <td id="d2h-837748-4620" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4620"> <div class="line-num1"></div> <div class="line-num2">31</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # @return [String] i18n-configured title for the current page.</span> </div> </td> </tr><tr> <td id="d2h-837748-4631" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4631"> <div class="line-num1"></div> <div class="line-num2">32</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> def page_title</span> </div> </td> </tr><tr> <td id="d2h-837748-4642" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4642"> <div class="line-num1"></div> <div class="line-num2">33</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> title.page</span> </div> </td> </tr><tr> <td id="d2h-837748-4653" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4653"> <div class="line-num1"></div> <div class="line-num2">34</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-837748-4664" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4664"> <div class="line-num1"></div> <div class="line-num2">35</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-837748-4675" class="d2h-code-linenumber d2h-ins"><a href="#d2h-837748-4675"> <div class="line-num1"></div> <div class="line-num2">36</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">end</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-183218" class="d2h-file-wrapper" data-lang="rb"> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-183218">data/lib/titleist/engine.rb</a></span> <span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span></span> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -1,8 +1,14 @@</div> </td> </tr><tr> <td id="d2h-183218-4709" class="d2h-code-linenumber d2h-ins"><a href="#d2h-183218-4709"> <div class="line-num1"></div> <div class="line-num2">1</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># typed: strong</span> </div> </td> </tr><tr> <td id="d2h-183218-4720" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-183218-4720"> <div class="line-num1">1</div> <div class="line-num2">2</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">module Titleist</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">2</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> # Extensions into the Rails framework<del>,</del> <del>including</del> the</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">3</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> # <del>+Rails.configuration.titleist+</del> <del>config</del> <del>which</del> <del>can</del> <del>optionally</del> <del>configure</del></span> </div> </td> </tr><tr> <td id="d2h-183218-4753" class="d2h-code-linenumber d2h-del"><a href="#d2h-183218-4753"> <div class="line-num1">4</div> <div class="line-num2"></div> </a></td> <td class="d2h-del"> <div class="d2h-code-line d2h-del"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> # the global application title.</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">3</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # Extensions into the Rails framework <ins>that</ins> <ins>mixin </ins>the<ins> controller and</ins></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">4</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # <ins>helper</ins> <ins>modules</ins> <ins>when</ins> <ins>ActionController</ins> <ins>and</ins> <ins>ActionView are loaded.</ins></span> </div> </td> </tr><tr> <td id="d2h-183218-4786" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-183218-4786"> <div class="line-num1">5</div> <div class="line-num2">5</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> class Engine < Rails::Engine</span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-del d2h-change"> <div class="line-num1">6</div> <div class="line-num2"></div> </a></td> <td class="d2h-del d2h-change"> <div class="d2h-code-line d2h-del d2h-change"> <span class="d2h-code-line-prefix">-</span> <span class="d2h-code-line-ctn"> <del>config</del>.<del>titleist</del> <del>=</del> <del>ActiveSupport::OrderedOptions.new</del></span> </div> </td> </tr><tr> <td class="d2h-code-linenumber d2h-ins d2h-change"> <div class="line-num1"></div> <div class="line-num2">6</div> </a></td> <td class="d2h-ins d2h-change"> <div class="d2h-code-line d2h-ins d2h-change"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> <ins>ActiveSupport</ins>.<ins>on_load</ins> <ins>:action_controller_base</ins> <ins>do</ins></span> </div> </td> </tr><tr> <td id="d2h-183218-4819" class="d2h-code-linenumber d2h-ins"><a href="#d2h-183218-4819"> <div class="line-num1"></div> <div class="line-num2">7</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> include Titleist::Controller</span> </div> </td> </tr><tr> <td id="d2h-183218-4830" class="d2h-code-linenumber d2h-ins"><a href="#d2h-183218-4830"> <div class="line-num1"></div> <div class="line-num2">8</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-183218-4841" class="d2h-code-linenumber d2h-ins"><a href="#d2h-183218-4841"> <div class="line-num1"></div> <div class="line-num2">9</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-183218-4852" class="d2h-code-linenumber d2h-ins"><a href="#d2h-183218-4852"> <div class="line-num1"></div> <div class="line-num2">10</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> ActiveSupport.on_load :action_view do</span> </div> </td> </tr><tr> <td id="d2h-183218-4863" class="d2h-code-linenumber d2h-ins"><a href="#d2h-183218-4863"> <div class="line-num1"></div> <div class="line-num2">11</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> include Titleist::Helper</span> </div> </td> </tr><tr> <td id="d2h-183218-4874" class="d2h-code-linenumber d2h-ins"><a href="#d2h-183218-4874"> <div class="line-num1"></div> <div class="line-num2">12</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-183218-4885" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-183218-4885"> <div class="line-num1">7</div> <div class="line-num2">13</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-183218-4896" class="d2h-code-linenumber d2h-cntx"><a href="#d2h-183218-4896"> <div class="line-num1">8</div> <div class="line-num2">14</div> </a></td> <td class="d2h-cntx"> <div class="d2h-code-line d2h-cntx"> <span class="d2h-code-line-prefix"> </span> <span class="d2h-code-line-ctn">end</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> <div id="d2h-972382" class="d2h-file-wrapper" data-lang="rb"> <div class="d2h-file-header"> <span class="d2h-file-name-wrapper"> <svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12"> <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path> </svg> <span class="d2h-file-name"><a href="#d2h-972382">data/lib/titleist/helper.rb</a></span> <span class="d2h-tag d2h-added d2h-added-tag">ADDED</span></span> </div> <div class="d2h-file-diff"> <div class="d2h-code-wrapper"> <table class="d2h-diff-table"> <tbody class="d2h-diff-tbody"> <tr> <td class="d2h-code-linenumber d2h-info"></td> <td class="d2h-info"> <div class="d2h-code-line d2h-info">@@ -0,0 +1,23 @@</div> </td> </tr><tr> <td id="d2h-972382-4930" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-4930"> <div class="line-num1"></div> <div class="line-num2">1</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"># typed: false</span> </div> </td> </tr><tr> <td id="d2h-972382-4941" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-4941"> <div class="line-num1"></div> <div class="line-num2">2</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-972382-4952" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-4952"> <div class="line-num1"></div> <div class="line-num2">3</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">module Titleist</span> </div> </td> </tr><tr> <td id="d2h-972382-4963" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-4963"> <div class="line-num1"></div> <div class="line-num2">4</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # Helper methods in ActionView for rendering the title.</span> </div> </td> </tr><tr> <td id="d2h-972382-4974" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-4974"> <div class="line-num1"></div> <div class="line-num2">5</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> module Helper</span> </div> </td> </tr><tr> <td id="d2h-972382-4985" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-4985"> <div class="line-num1"></div> <div class="line-num2">6</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> extend T::Sig</span> </div> </td> </tr><tr> <td id="d2h-972382-4996" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-4996"> <div class="line-num1"></div> <div class="line-num2">7</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-972382-5007" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5007"> <div class="line-num1"></div> <div class="line-num2">8</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # Render the full title as a `<title>` tag.</span> </div> </td> </tr><tr> <td id="d2h-972382-5018" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5018"> <div class="line-num1"></div> <div class="line-num2">9</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> #</span> </div> </td> </tr><tr> <td id="d2h-972382-5029" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5029"> <div class="line-num1"></div> <div class="line-num2">10</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # @return [String]</span> </div> </td> </tr><tr> <td id="d2h-972382-5040" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5040"> <div class="line-num1"></div> <div class="line-num2">11</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> def title_tag</span> </div> </td> </tr><tr> <td id="d2h-972382-5051" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5051"> <div class="line-num1"></div> <div class="line-num2">12</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> content_tag :title, title_text.to_s</span> </div> </td> </tr><tr> <td id="d2h-972382-5062" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5062"> <div class="line-num1"></div> <div class="line-num2">13</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-972382-5073" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5073"> <div class="line-num1"></div> <div class="line-num2">14</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-972382-5084" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5084"> <div class="line-num1"></div> <div class="line-num2">15</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> private</span> </div> </td> </tr><tr> <td id="d2h-972382-5095" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5095"> <div class="line-num1"></div> <div class="line-num2">16</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"><br></span> </div> </td> </tr><tr> <td id="d2h-972382-5106" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5106"> <div class="line-num1"></div> <div class="line-num2">17</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # @private</span> </div> </td> </tr><tr> <td id="d2h-972382-5117" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5117"> <div class="line-num1"></div> <div class="line-num2">18</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> # @return [String]</span> </div> </td> </tr><tr> <td id="d2h-972382-5128" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5128"> <div class="line-num1"></div> <div class="line-num2">19</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> def title_text</span> </div> </td> </tr><tr> <td id="d2h-972382-5139" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5139"> <div class="line-num1"></div> <div class="line-num2">20</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> current_page?(root_path) ? title.app : title</span> </div> </td> </tr><tr> <td id="d2h-972382-5150" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5150"> <div class="line-num1"></div> <div class="line-num2">21</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-972382-5161" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5161"> <div class="line-num1"></div> <div class="line-num2">22</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn"> end</span> </div> </td> </tr><tr> <td id="d2h-972382-5172" class="d2h-code-linenumber d2h-ins"><a href="#d2h-972382-5172"> <div class="line-num1"></div> <div class="line-num2">23</div> </a></td> <td class="d2h-ins"> <div class="d2h-code-line d2h-ins"> <span class="d2h-code-line-prefix">+</span> <span class="d2h-code-line-ctn">end</span> </div> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> <div class='row align-items-center mt-3 justify-content-center'> <div class='text-center'> <ul class='pagination mb-0'> <li class='page-item page active'> <a class="page-link" href="/gems/titleist/0.1.1/1.0.0">1</a> </li> <li class='page-item page'> <a rel="next" class="page-link" href="/gems/titleist/0.1.1/1.0.0/page/2">2</a> </li> <li class='page-item page'> <a class="page-link" href="/gems/titleist/0.1.1/1.0.0/page/3">3</a> </li> <li class='page-item page'> <a class="page-link" href="/gems/titleist/0.1.1/1.0.0/page/4">4</a> </li> <li class='page-item page'> <a class="page-link" href="/gems/titleist/0.1.1/1.0.0/page/5">5</a> </li> <li class='page gap disabled'> <a href='#' onclick='return false;'> ... </a> </li> <li class='next_page page-item'> <a rel="next" class="page-link" href="/gems/titleist/0.1.1/1.0.0/page/2">Next ›</a> </li> <li class='last next page-item'> <a class="page-link" href="/gems/titleist/0.1.1/1.0.0/page/40">Last »</a> </li> </ul> </div> </div> </div> </div> <footer class='sticky-footer mt-3'> <div class='container text-center mb-3 copyright'> <a class='mr-4 text-gray-600' href='mailto:diffend@whitesourcesoftware.com'> Contact Us </a> <a class='mr-4 text-gray-600' href='https://www.whitesourcesoftware.com/terms-of-service/'> Terms of Service </a> <a class='mr-4 text-gray-600' href='https://www.whitesourcesoftware.com/privacy-policy/'> Privacy Policy </a> <a class='mr-4 text-gray-600' href='https://diffend.io/docs'> Docs </a> </div> <div class='container mt-4'> <div class='copyright text-center'> Copyright © 2024 Mend Software </div> </div> </footer> </div> </div> </div> </body> </html>