Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ title: RailsDoc(β)
description: Ruby on Rails API Documentation.
url: https://railsdoc.github.io
source: src
default_rails_version: "8.1.0.beta1"
default_rails_version: "8.1.0.rc1"
rails_versions:
"8.1":
specific_version8.1.0.beta1: "8.1.0.beta1"
specific_version: "8.1.0.rc1"
latest: true
"8.0":
specific_version: "8.0.3"
Expand Down
2 changes: 1 addition & 1 deletion rails
Submodule rails updated 392 files
2 changes: 1 addition & 1 deletion src/classes/AbstractController.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 8.1.0.beta1</span><br />
<span>Ruby on Rails 8.1.0.rc1</span><br />

<div class="type">Module</div>
<h1>
Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/ActionNotFound.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 8.1.0.beta1</span><br />
<span>Ruby on Rails 8.1.0.rc1</span><br />

<div class="type">Class</div>
<h1>
Expand Down
173 changes: 87 additions & 86 deletions src/classes/AbstractController/Base.html

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions src/classes/AbstractController/Caching.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 8.1.0.beta1</span><br />
<span>Ruby on Rails 8.1.0.rc1</span><br />

<div class="type">Module</div>
<h1>
Expand Down Expand Up @@ -127,11 +127,11 @@ <h3 id="method-i-view_cache_dependencies">
</summary>

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

<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>
<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>

</details>

Expand Down Expand Up @@ -165,15 +165,15 @@ <h3 id="method-i-cache">
</summary>

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

<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>
<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>

</details>

Expand Down
10 changes: 5 additions & 5 deletions src/classes/AbstractController/Caching/ClassMethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 8.1.0.beta1</span><br />
<span>Ruby on Rails 8.1.0.rc1</span><br />

<div class="type">Module</div>
<h1>
Expand Down Expand Up @@ -82,11 +82,11 @@ <h3 id="method-i-view_cache_dependency">
</summary>

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

<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>
<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>

</details>

Expand Down
18 changes: 9 additions & 9 deletions src/classes/AbstractController/Caching/ConfigMethods.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 8.1.0.beta1</span><br />
<span>Ruby on Rails 8.1.0.rc1</span><br />

<div class="type">Module</div>
<h1>
Expand Down Expand Up @@ -86,11 +86,11 @@ <h3 id="method-i-cache_store">
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching.rb, line 15
def cache_store
config.cache_store
end</code></pre>
def cache_store
config.cache_store
end</code></pre>

<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>
<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>

</details>

Expand Down Expand Up @@ -121,11 +121,11 @@ <h3 id="method-i-cache_store-3D">
</summary>

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

<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>
<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>

</details>

Expand Down
116 changes: 58 additions & 58 deletions src/classes/AbstractController/Caching/Fragments.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 8.1.0.beta1</span><br />
<span>Ruby on Rails 8.1.0.rc1</span><br />

<div class="type">Module</div>
<h1>
Expand Down Expand Up @@ -108,7 +108,7 @@ <h3 id="method-i-combined_fragment_cache_key">


<div class="description">
<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>
<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>
</div>


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

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 68
def combined_fragment_cache_key(key)
head = self.class.fragment_cache_keys.map { |k| instance_exec(&amp;k) }
tail = key.is_a?(Hash) ? url_for(key).split(&quot;://&quot;).last : key

cache_key = [:views, ENV[&quot;RAILS_CACHE_ID&quot;] || ENV[&quot;RAILS_APP_VERSION&quot;], head, tail]
cache_key.flatten!(1)
cache_key.compact!
cache_key
end</code></pre>
def combined_fragment_cache_key(key)
head = self.class.fragment_cache_keys.map { |k| instance_exec(&amp;k) }
tail = key.is_a?(Hash) ? url_for(key).split(&quot;://&quot;).last : key

cache_key = [:views, ENV[&quot;RAILS_CACHE_ID&quot;] || ENV[&quot;RAILS_APP_VERSION&quot;], head, tail]
cache_key.flatten!(1)
cache_key.compact!
cache_key
end</code></pre>

<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>
<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>

</details>

Expand Down Expand Up @@ -176,20 +176,20 @@ <h3 id="method-i-expire_fragment">
</summary>

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 131
def expire_fragment(key, options = nil)
return unless cache_configured?
key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)

instrument_fragment_cache :expire_fragment, key do
if key.is_a?(Regexp)
cache_store.delete_matched(key, options)
else
cache_store.delete(key, options)
end
end
end</code></pre>
def expire_fragment(key, options = nil)
return unless cache_configured?
key = combined_fragment_cache_key(key) unless key.is_a?(Regexp)

instrument_fragment_cache :expire_fragment, key do
if key.is_a?(Regexp)
cache_store.delete_matched(key, options)
else
cache_store.delete(key, options)
end
end
end</code></pre>

<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>
<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>

</details>

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


<div class="description">
<p>Check if a cached fragment from the location signified by <code>key</code> exists (see <code>expire_fragment</code> for acceptable formats).</p>
<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>
</div>


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

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 105
def fragment_exist?(key, options = nil)
return unless cache_configured?
key = combined_fragment_cache_key(key)

instrument_fragment_cache :exist_fragment?, key do
cache_store.exist?(key, options)
end
end</code></pre>
def fragment_exist?(key, options = nil)
return unless cache_configured?
key = combined_fragment_cache_key(key)

instrument_fragment_cache :exist_fragment?, key do
cache_store.exist?(key, options)
end
end</code></pre>

<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>
<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>

</details>

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


<div class="description">
<p>Reads a cached fragment from the location signified by <code>key</code> (see <code>expire_fragment</code> for acceptable formats).</p>
<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>
</div>


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

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 93
def read_fragment(key, options = nil)
return unless cache_configured?

key = combined_fragment_cache_key(key)
instrument_fragment_cache :read_fragment, key do
result = cache_store.read(key, options)
result.respond_to?(:html_safe) ? result.html_safe : result
end
end</code></pre>
def read_fragment(key, options = nil)
return unless cache_configured?

key = combined_fragment_cache_key(key)
instrument_fragment_cache :read_fragment, key do
result = cache_store.read(key, options)
result.respond_to?(:html_safe) ? result.html_safe : result
end
end</code></pre>

<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>
<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>

</details>

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


<div class="description">
<p>Writes <code>content</code> to the location signified by <code>key</code> (see <code>expire_fragment</code> for acceptable formats).</p>
<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>
</div>


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

<pre><code class="ruby"># File actionpack/lib/abstract_controller/caching/fragments.rb, line 80
def write_fragment(key, content, options = nil)
return content unless cache_configured?

key = combined_fragment_cache_key(key)
instrument_fragment_cache :write_fragment, key do
content = content.to_str
cache_store.write(key, content, options)
end
content
end</code></pre>
def write_fragment(key, content, options = nil)
return content unless cache_configured?

key = combined_fragment_cache_key(key)
instrument_fragment_cache :write_fragment, key do
content = content.to_str
cache_store.write(key, content, options)
end
content
end</code></pre>

<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>
<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>

</details>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 8.1.0.beta1</span><br />
<span>Ruby on Rails 8.1.0.rc1</span><br />

<div class="type">Module</div>
<h1>
Expand Down Expand Up @@ -98,11 +98,11 @@ <h3 id="method-i-fragment_cache_key">
</summary>

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

<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>
<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>

</details>

Expand Down
2 changes: 1 addition & 1 deletion src/classes/AbstractController/Callbacks.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="main">
<div class="banner">

<span>Ruby on Rails 8.1.0.beta1</span><br />
<span>Ruby on Rails 8.1.0.rc1</span><br />

<div class="type">Module</div>
<h1>
Expand Down
Loading