aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/CHANGELOG.md
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2018-05-21 11:49:22 -0400
committerGitHub <noreply@github.com>2018-05-21 11:49:22 -0400
commit6c574ac58993512f975ddaf1f679c5956cc576df (patch)
tree94fdab34c9bcfcba02a3a082f864e8f6107b2d54 /activestorage/CHANGELOG.md
parent41147e3ef802fe7c6aa0eafc9e584fd68f05d395 (diff)
parent0210ac0b430757f2b5ba5e81f4391e6a37b769a4 (diff)
downloadrails-6c574ac58993512f975ddaf1f679c5956cc576df.tar.gz
rails-6c574ac58993512f975ddaf1f679c5956cc576df.tar.bz2
rails-6c574ac58993512f975ddaf1f679c5956cc576df.zip
Merge pull request #32936 from jacobsmith/image-variant-allow-disabling-options
[ActiveStorage] Disable variant options when false or nil present
Diffstat (limited to 'activestorage/CHANGELOG.md')
-rw-r--r--activestorage/CHANGELOG.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/activestorage/CHANGELOG.md b/activestorage/CHANGELOG.md
index 7b724b7b81..c8911fe611 100644
--- a/activestorage/CHANGELOG.md
+++ b/activestorage/CHANGELOG.md
@@ -1,3 +1,13 @@
+* Variant arguments of `false` or `nil` will no longer be passed to the
+ processor. For example, the following will not have the monochrome
+ variation applied:
+
+ ```ruby
+ avatar.variant(monochrome: false)
+ ```
+
+ *Jacob Smith*
+
* Generated attachment getter and setter methods are created
within the model's `GeneratedAssociationMethods` module to
allow overriding and composition using `super`.