mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #43127 from ceritium/fix-weak-links
Fix weak links on guides [ci-skip]
This commit is contained in:
commit
47f9e6725e
2 changed files with 10 additions and 8 deletions
|
@ -853,7 +853,10 @@ location.
|
|||
If a variant is requested, Active Storage will automatically apply
|
||||
transformations depending on the image's format:
|
||||
|
||||
1. Content types that are [`variable`] and not considered [`web images`], will be converted to PNG.
|
||||
1. Content types that are variable (as dictated by `config.active_storage.variable_content_types`)
|
||||
and not considered web images (as dictated by `config.active_storage.web_image_content_types`),
|
||||
will be converted to PNG.
|
||||
|
||||
2. If `quality` is not specified, the variant processor's default quality for the format will be used.
|
||||
|
||||
The default processor for Active Storage is MiniMagick, but you can also use
|
||||
|
@ -876,8 +879,6 @@ specific:
|
|||
```
|
||||
|
||||
[`variant`]: https://api.rubyonrails.org/classes/ActiveStorage/Blob/Representable.html#method-i-variant
|
||||
[`web images`]: https://github.com/rails/rails/blob/main/activestorage/lib/active_storage/engine.rb#L47
|
||||
[`variable`]: https://github.com/rails/rails/blob/main/activestorage/lib/active_storage/engine.rb#L34
|
||||
[Vips]: https://www.rubydoc.info/gems/ruby-vips/Vips/Image
|
||||
|
||||
### Previewing Files
|
||||
|
|
|
@ -271,9 +271,10 @@ Advanced Usage
|
|||
--------------
|
||||
|
||||
The application template is evaluated in the context of a
|
||||
`Rails::Generators::AppGenerator` instance. It uses the `apply` action
|
||||
provided by
|
||||
[Thor](https://github.com/erikhuda/thor/blob/master/lib/thor/actions.rb#L207).
|
||||
`Rails::Generators::AppGenerator` instance. It uses the
|
||||
[`apply`](https://rdoc.info/github/wycats/thor/Thor/Actions#apply-instance_method)
|
||||
action provided by Thor.
|
||||
|
||||
This means you can extend and change the instance to match your needs.
|
||||
|
||||
For example by overwriting the `source_paths` method to contain the
|
||||
|
|
Loading…
Reference in a new issue