rails--rails/guides
Sean Doyle c0f33b923b
Improve Fixture support for Active Storage (#41065)
* Improve Fixture support for Active Storage

Inspired by [76b33aa][], this commit extends the Active Storage
documentation to elaborate on how to declare fixtures.

In support of that, also introduce the `ActiveStorage::FixtureSet.blob`
method for injecting in-line [ActiveStorage::Blob][] attributes directly
into fixture YAML.

[76b33aa]: 76b33aa3d1
[ActiveStorage::Blob]: https://edgeapi.rubyonrails.org/classes/ActiveStorage/Blob.html

* Extra CR for style

* Two-space indention

* Explaining variable didn't explain, inline for style

Co-authored-by: David Heinemeier Hansson <david@loudthinking.com>
2021-01-24 11:10:30 +01:00
..
assets Always show version badge, not just for edge [ci skip] 2020-11-09 20:28:08 +01:00
bug_report_templates Fix the benchmark script to point to the main branch 2021-01-21 20:29:12 +00:00
rails_guides feat(rubocop): Add Style/RedundantRegexpEscape 2020-12-08 18:57:09 +00:00
source Improve Fixture support for Active Storage (#41065) 2021-01-24 11:10:30 +01:00
.document
CHANGELOG.md Start Rails 6.2 development 🎉 2020-12-03 01:35:29 +00:00
Rakefile Remove references to WARNINGS environment variable [ci skip] 2020-07-05 16:40:52 +01:00
rails_guides.rb
w3c_validator.rb