Skip to content

Commit d2290eb

Browse files
authored
Bump rails 8.1.0.beta1 → 8.1.0.rc1 (#198)
* Bump rails 8.1.0.beta1 → 8.1.0.rc1 * docs: Update docs
1 parent a9c40c7 commit d2290eb

File tree

2,759 files changed

+44722
-44804
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,759 files changed

+44722
-44804
lines changed

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ title: RailsDoc(β)
22
description: Ruby on Rails API Documentation.
33
url: https://railsdoc.github.io
44
source: src
5-
default_rails_version: "8.1.0.beta1"
5+
default_rails_version: "8.1.0.rc1"
66
rails_versions:
77
"8.1":
8-
specific_version8.1.0.beta1: "8.1.0.beta1"
8+
specific_version: "8.1.0.rc1"
99
latest: true
1010
"8.0":
1111
specific_version: "8.0.3"

rails

Submodule rails updated 392 files

src/classes/AbstractController.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="main">
66
<div class="banner">
77

8-
<span>Ruby on Rails 8.1.0.beta1</span><br />
8+
<span>Ruby on Rails 8.1.0.rc1</span><br />
99

1010
<div class="type">Module</div>
1111
<h1>

src/classes/AbstractController/ActionNotFound.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="main">
66
<div class="banner">
77

8-
<span>Ruby on Rails 8.1.0.beta1</span><br />
8+
<span>Ruby on Rails 8.1.0.rc1</span><br />
99

1010
<div class="type">Class</div>
1111
<h1>

src/classes/AbstractController/Base.html

Lines changed: 87 additions & 86 deletions
Large diffs are not rendered by default.

src/classes/AbstractController/Caching.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="main">
66
<div class="banner">
77

8-
<span>Ruby on Rails 8.1.0.beta1</span><br />
8+
<span>Ruby on Rails 8.1.0.rc1</span><br />
99

1010
<div class="type">Module</div>
1111
<h1>
@@ -127,11 +127,11 @@ <h3 id="method-i-view_cache_dependencies">
127127
</summary>
128128

129129
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 57
130-
def view_cache_dependencies
131-
self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&amp;dep) }
132-
end</code></pre>
130+
def view_cache_dependencies
131+
self.class._view_cache_dependencies.filter_map { |dep| instance_exec(&amp;dep) }
132+
end</code></pre>
133133

134-
<a href="https://github.com/rails/rails/blob/80827ca7ff33ca3026f2c74fe8249ccc6f513318/actionpack/lib/abstract_controller/caching.rb#L57" target="_blank" class="github_url">🔎 See on GitHub</a>
134+
<a href="https://github.com/rails/rails/blob/4720fe9c00605d6ad2d50904e98a4d5522ffbce2/actionpack/lib/abstract_controller/caching.rb#L57" target="_blank" class="github_url">🔎 See on GitHub</a>
135135

136136
</details>
137137

@@ -165,15 +165,15 @@ <h3 id="method-i-cache">
165165
</summary>
166166

167167
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 63
168-
def cache(key, options = {}, &amp;block) # :doc:
169-
if cache_configured?
170-
cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &amp;block)
171-
else
172-
yield
173-
end
174-
end</code></pre>
168+
def cache(key, options = {}, &amp;block) # :doc:
169+
if cache_configured?
170+
cache_store.fetch(ActiveSupport::Cache.expand_cache_key(key, :controller), options, &amp;block)
171+
else
172+
yield
173+
end
174+
end</code></pre>
175175

176-
<a href="https://github.com/rails/rails/blob/80827ca7ff33ca3026f2c74fe8249ccc6f513318/actionpack/lib/abstract_controller/caching.rb#L63" target="_blank" class="github_url">🔎 See on GitHub</a>
176+
<a href="https://github.com/rails/rails/blob/4720fe9c00605d6ad2d50904e98a4d5522ffbce2/actionpack/lib/abstract_controller/caching.rb#L63" target="_blank" class="github_url">🔎 See on GitHub</a>
177177

178178
</details>
179179

src/classes/AbstractController/Caching/ClassMethods.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="main">
66
<div class="banner">
77

8-
<span>Ruby on Rails 8.1.0.beta1</span><br />
8+
<span>Ruby on Rails 8.1.0.rc1</span><br />
99

1010
<div class="type">Module</div>
1111
<h1>
@@ -82,11 +82,11 @@ <h3 id="method-i-view_cache_dependency">
8282
</summary>
8383

8484
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 52
85-
def view_cache_dependency(&amp;dependency)
86-
self._view_cache_dependencies += [dependency]
87-
end</code></pre>
85+
def view_cache_dependency(&amp;dependency)
86+
self._view_cache_dependencies += [dependency]
87+
end</code></pre>
8888

89-
<a href="https://github.com/rails/rails/blob/80827ca7ff33ca3026f2c74fe8249ccc6f513318/actionpack/lib/abstract_controller/caching.rb#L52" target="_blank" class="github_url">🔎 See on GitHub</a>
89+
<a href="https://github.com/rails/rails/blob/4720fe9c00605d6ad2d50904e98a4d5522ffbce2/actionpack/lib/abstract_controller/caching.rb#L52" target="_blank" class="github_url">🔎 See on GitHub</a>
9090

9191
</details>
9292

src/classes/AbstractController/Caching/ConfigMethods.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="main">
66
<div class="banner">
77

8-
<span>Ruby on Rails 8.1.0.beta1</span><br />
8+
<span>Ruby on Rails 8.1.0.rc1</span><br />
99

1010
<div class="type">Module</div>
1111
<h1>
@@ -86,11 +86,11 @@ <h3 id="method-i-cache_store">
8686
</summary>
8787

8888
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 15
89-
def cache_store
90-
config.cache_store
91-
end</code></pre>
89+
def cache_store
90+
config.cache_store
91+
end</code></pre>
9292

93-
<a href="https://github.com/rails/rails/blob/80827ca7ff33ca3026f2c74fe8249ccc6f513318/actionpack/lib/abstract_controller/caching.rb#L15" target="_blank" class="github_url">🔎 See on GitHub</a>
93+
<a href="https://github.com/rails/rails/blob/4720fe9c00605d6ad2d50904e98a4d5522ffbce2/actionpack/lib/abstract_controller/caching.rb#L15" target="_blank" class="github_url">🔎 See on GitHub</a>
9494

9595
</details>
9696

@@ -121,11 +121,11 @@ <h3 id="method-i-cache_store-3D">
121121
</summary>
122122

123123
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 19
124-
def cache_store=(store)
125-
config.cache_store = ActiveSupport::Cache.lookup_store(*store)
126-
end</code></pre>
124+
def cache_store=(store)
125+
config.cache_store = ActiveSupport::Cache.lookup_store(*store)
126+
end</code></pre>
127127

128-
<a href="https://github.com/rails/rails/blob/80827ca7ff33ca3026f2c74fe8249ccc6f513318/actionpack/lib/abstract_controller/caching.rb#L19" target="_blank" class="github_url">🔎 See on GitHub</a>
128+
<a href="https://github.com/rails/rails/blob/4720fe9c00605d6ad2d50904e98a4d5522ffbce2/actionpack/lib/abstract_controller/caching.rb#L19" target="_blank" class="github_url">🔎 See on GitHub</a>
129129

130130
</details>
131131

src/classes/AbstractController/Caching/Fragments.html

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="main">
66
<div class="banner">
77

8-
<span>Ruby on Rails 8.1.0.beta1</span><br />
8+
<span>Ruby on Rails 8.1.0.rc1</span><br />
99

1010
<div class="type">Module</div>
1111
<h1>
@@ -108,7 +108,7 @@ <h3 id="method-i-combined_fragment_cache_key">
108108

109109

110110
<div class="description">
111-
<p>Given a key (as described in <code>expire_fragment</code>), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with <code>:views</code>, followed by <code>ENV[&quot;RAILS_CACHE_ID&quot;]</code> or <code>ENV[&quot;RAILS_APP_VERSION&quot;]</code> if set, followed by any controller-wide key prefix values, ending with the specified <code>key</code> value.</p>
111+
<p>Given a key (as described in <a href="Fragments.html#method-i-expire_fragment"><code>expire_fragment</code></a>), returns a key array suitable for use in reading, writing, or expiring a cached fragment. All keys begin with <code>:views</code>, followed by <code>ENV[&quot;RAILS_CACHE_ID&quot;]</code> or <code>ENV[&quot;RAILS_APP_VERSION&quot;]</code> if set, followed by any controller-wide key prefix values, ending with the specified <code>key</code> value.</p>
112112
</div>
113113

114114

@@ -124,17 +124,17 @@ <h3 id="method-i-combined_fragment_cache_key">
124124
</summary>
125125

126126
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
127-
def combined_fragment_cache_key(key)
128-
head = self.class.fragment_cache_keys.map { |k| instance_exec(&amp;k) }
129-
tail = key.is_a?(Hash) ? url_for(key).split(&quot;://&quot;).last : key
130-
131-
cache_key = [:views, ENV[&quot;RAILS_CACHE_ID&quot;] || ENV[&quot;RAILS_APP_VERSION&quot;], head, tail]
132-
cache_key.flatten!(1)
133-
cache_key.compact!
134-
cache_key
135-
end</code></pre>
127+
def combined_fragment_cache_key(key)
128+
head = self.class.fragment_cache_keys.map { |k| instance_exec(&amp;k) }
129+
tail = key.is_a?(Hash) ? url_for(key).split(&quot;://&quot;).last : key
130+
131+
cache_key = [:views, ENV[&quot;RAILS_CACHE_ID&quot;] || ENV[&quot;RAILS_APP_VERSION&quot;], head, tail]
132+
cache_key.flatten!(1)
133+
cache_key.compact!
134+
cache_key
135+
end</code></pre>
136136

137-
<a href="https://github.com/rails/rails/blob/80827ca7ff33ca3026f2c74fe8249ccc6f513318/actionpack/lib/abstract_controller/caching/fragments.rb#L68" target="_blank" class="github_url">🔎 See on GitHub</a>
137+
<a href="https://github.com/rails/rails/blob/4720fe9c00605d6ad2d50904e98a4d5522ffbce2/actionpack/lib/abstract_controller/caching/fragments.rb#L68" target="_blank" class="github_url">🔎 See on GitHub</a>
138138

139139
</details>
140140

@@ -176,20 +176,20 @@ <h3 id="method-i-expire_fragment">
176176
</summary>
177177

178178
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
179-
def expire_fragment(key, options = nil)
180-
return unless cache_configured?
181-
key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
182-
183-
instrument_fragment_cache :expire_fragment, key do
184-
if key.is_a?(Regexp)
185-
cache_store.delete_matched(key, options)
186-
else
187-
cache_store.delete(key, options)
188-
end
189-
end
190-
end</code></pre>
179+
def expire_fragment(key, options = nil)
180+
return unless cache_configured?
181+
key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)
182+
183+
instrument_fragment_cache :expire_fragment, key do
184+
if key.is_a?(Regexp)
185+
cache_store.delete_matched(key, options)
186+
else
187+
cache_store.delete(key, options)
188+
end
189+
end
190+
end</code></pre>
191191

192-
<a href="https://github.com/rails/rails/blob/80827ca7ff33ca3026f2c74fe8249ccc6f513318/actionpack/lib/abstract_controller/caching/fragments.rb#L131" target="_blank" class="github_url">🔎 See on GitHub</a>
192+
<a href="https://github.com/rails/rails/blob/4720fe9c00605d6ad2d50904e98a4d5522ffbce2/actionpack/lib/abstract_controller/caching/fragments.rb#L131" target="_blank" class="github_url">🔎 See on GitHub</a>
193193

194194
</details>
195195

@@ -204,7 +204,7 @@ <h3 id="method-i-fragment_exist-3F">
204204

205205

206206
<div class="description">
207-
<p>Check if a cached fragment from the location signified by <code>key</code> exists (see <code>expire_fragment</code> for acceptable formats).</p>
207+
<p>Check if a cached fragment from the location signified by <code>key</code> exists (see <a href="Fragments.html#method-i-expire_fragment"><code>expire_fragment</code></a> for acceptable formats).</p>
208208
</div>
209209

210210

@@ -220,16 +220,16 @@ <h3 id="method-i-fragment_exist-3F">
220220
</summary>
221221

222222
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
223-
def fragment_exist?(key, options = nil)
224-
return unless cache_configured?
225-
key = combined_fragment_cache_key(key)
226-
227-
instrument_fragment_cache :exist_fragment?, key do
228-
cache_store.exist?(key, options)
229-
end
230-
end</code></pre>
223+
def fragment_exist?(key, options = nil)
224+
return unless cache_configured?
225+
key = combined_fragment_cache_key(key)
226+
227+
instrument_fragment_cache :exist_fragment?, key do
228+
cache_store.exist?(key, options)
229+
end
230+
end</code></pre>
231231

232-
<a href="https://github.com/rails/rails/blob/80827ca7ff33ca3026f2c74fe8249ccc6f513318/actionpack/lib/abstract_controller/caching/fragments.rb#L105" target="_blank" class="github_url">🔎 See on GitHub</a>
232+
<a href="https://github.com/rails/rails/blob/4720fe9c00605d6ad2d50904e98a4d5522ffbce2/actionpack/lib/abstract_controller/caching/fragments.rb#L105" target="_blank" class="github_url">🔎 See on GitHub</a>
233233

234234
</details>
235235

@@ -244,7 +244,7 @@ <h3 id="method-i-read_fragment">
244244

245245

246246
<div class="description">
247-
<p>Reads a cached fragment from the location signified by <code>key</code> (see <code>expire_fragment</code> for acceptable formats).</p>
247+
<p>Reads a cached fragment from the location signified by <code>key</code> (see <a href="Fragments.html#method-i-expire_fragment"><code>expire_fragment</code></a> for acceptable formats).</p>
248248
</div>
249249

250250

@@ -260,17 +260,17 @@ <h3 id="method-i-read_fragment">
260260
</summary>
261261

262262
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
263-
def read_fragment(key, options = nil)
264-
return unless cache_configured?
265-
266-
key = combined_fragment_cache_key(key)
267-
instrument_fragment_cache :read_fragment, key do
268-
result = cache_store.read(key, options)
269-
result.respond_to?(:html_safe) ? result.html_safe : result
270-
end
271-
end</code></pre>
263+
def read_fragment(key, options = nil)
264+
return unless cache_configured?
265+
266+
key = combined_fragment_cache_key(key)
267+
instrument_fragment_cache :read_fragment, key do
268+
result = cache_store.read(key, options)
269+
result.respond_to?(:html_safe) ? result.html_safe : result
270+
end
271+
end</code></pre>
272272

273-
<a href="https://github.com/rails/rails/blob/80827ca7ff33ca3026f2c74fe8249ccc6f513318/actionpack/lib/abstract_controller/caching/fragments.rb#L93" target="_blank" class="github_url">🔎 See on GitHub</a>
273+
<a href="https://github.com/rails/rails/blob/4720fe9c00605d6ad2d50904e98a4d5522ffbce2/actionpack/lib/abstract_controller/caching/fragments.rb#L93" target="_blank" class="github_url">🔎 See on GitHub</a>
274274

275275
</details>
276276

@@ -285,7 +285,7 @@ <h3 id="method-i-write_fragment">
285285

286286

287287
<div class="description">
288-
<p>Writes <code>content</code> to the location signified by <code>key</code> (see <code>expire_fragment</code> for acceptable formats).</p>
288+
<p>Writes <code>content</code> to the location signified by <code>key</code> (see <a href="Fragments.html#method-i-expire_fragment"><code>expire_fragment</code></a> for acceptable formats).</p>
289289
</div>
290290

291291

@@ -301,18 +301,18 @@ <h3 id="method-i-write_fragment">
301301
</summary>
302302

303303
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
304-
def write_fragment(key, content, options = nil)
305-
return content unless cache_configured?
306-
307-
key = combined_fragment_cache_key(key)
308-
instrument_fragment_cache :write_fragment, key do
309-
content = content.to_str
310-
cache_store.write(key, content, options)
311-
end
312-
content
313-
end</code></pre>
304+
def write_fragment(key, content, options = nil)
305+
return content unless cache_configured?
306+
307+
key = combined_fragment_cache_key(key)
308+
instrument_fragment_cache :write_fragment, key do
309+
content = content.to_str
310+
cache_store.write(key, content, options)
311+
end
312+
content
313+
end</code></pre>
314314

315-
<a href="https://github.com/rails/rails/blob/80827ca7ff33ca3026f2c74fe8249ccc6f513318/actionpack/lib/abstract_controller/caching/fragments.rb#L80" target="_blank" class="github_url">🔎 See on GitHub</a>
315+
<a href="https://github.com/rails/rails/blob/4720fe9c00605d6ad2d50904e98a4d5522ffbce2/actionpack/lib/abstract_controller/caching/fragments.rb#L80" target="_blank" class="github_url">🔎 See on GitHub</a>
316316

317317
</details>
318318

src/classes/AbstractController/Caching/Fragments/ClassMethods.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="main">
66
<div class="banner">
77

8-
<span>Ruby on Rails 8.1.0.beta1</span><br />
8+
<span>Ruby on Rails 8.1.0.rc1</span><br />
99

1010
<div class="type">Module</div>
1111
<h1>
@@ -98,11 +98,11 @@ <h3 id="method-i-fragment_cache_key">
9898
</summary>
9999

100100
<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 58
101-
def fragment_cache_key(value = nil, &amp;key)
102-
self.fragment_cache_keys += [key || -&gt; { value }]
103-
end</code></pre>
101+
def fragment_cache_key(value = nil, &amp;key)
102+
self.fragment_cache_keys += [key || -&gt; { value }]
103+
end</code></pre>
104104

105-
<a href="https://github.com/rails/rails/blob/80827ca7ff33ca3026f2c74fe8249ccc6f513318/actionpack/lib/abstract_controller/caching/fragments.rb#L58" target="_blank" class="github_url">🔎 See on GitHub</a>
105+
<a href="https://github.com/rails/rails/blob/4720fe9c00605d6ad2d50904e98a4d5522ffbce2/actionpack/lib/abstract_controller/caching/fragments.rb#L58" target="_blank" class="github_url">🔎 See on GitHub</a>
106106

107107
</details>
108108

0 commit comments

Comments
 (0)