Skip to content

Commit 47f9e67

Browse files
Merge pull request rails#43127 from ceritium/fix-weak-links
Fix weak links on guides [ci-skip]
2 parents 8d8e5a5 + 4c6481f commit 47f9e67

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

guides/source/active_storage_overview.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -850,11 +850,14 @@ location.
850850
<%= image_tag user.avatar.variant(resize_to_limit: [100, 100]) %>
851851
```
852852

853-
If a variant is requested, Active Storage will automatically apply
853+
If a variant is requested, Active Storage will automatically apply
854854
transformations depending on the image's format:
855855

856-
1. Content types that are [`variable`] and not considered [`web images`], will be converted to PNG.
857-
2. If `quality` is not specified, the variant processor's default quality for the format will be used.
856+
1. Content types that are variable (as dictated by `config.active_storage.variable_content_types`)
857+
and not considered web images (as dictated by `config.active_storage.web_image_content_types`),
858+
will be converted to PNG.
859+
860+
2. If `quality` is not specified, the variant processor's default quality for the format will be used.
858861

859862
The default processor for Active Storage is MiniMagick, but you can also use
860863
[Vips][]. To switch to Vips, add the following to `config/application.rb`:
@@ -876,8 +879,6 @@ specific:
876879
```
877880

878881
[`variant`]: https://api.rubyonrails.org/classes/ActiveStorage/Blob/Representable.html#method-i-variant
879-
[`web images`]: https://github.com/rails/rails/blob/main/activestorage/lib/active_storage/engine.rb#L47
880-
[`variable`]: https://github.com/rails/rails/blob/main/activestorage/lib/active_storage/engine.rb#L34
881882
[Vips]: https://www.rubydoc.info/gems/ruby-vips/Vips/Image
882883

883884
### Previewing Files

guides/source/rails_application_templates.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,10 @@ Advanced Usage
271271
--------------
272272

273273
The application template is evaluated in the context of a
274-
`Rails::Generators::AppGenerator` instance. It uses the `apply` action
275-
provided by
276-
[Thor](https://github.com/erikhuda/thor/blob/master/lib/thor/actions.rb#L207).
274+
`Rails::Generators::AppGenerator` instance. It uses the
275+
[`apply`](https://rdoc.info/github/wycats/thor/Thor/Actions#apply-instance_method)
276+
action provided by Thor.
277+
277278
This means you can extend and change the instance to match your needs.
278279

279280
For example by overwriting the `source_paths` method to contain the

0 commit comments

Comments
 (0)