aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app
diff options
context:
space:
mode:
authorYi Feng <yfxie@me.com>2019-04-20 18:05:58 +0800
committerYi Feng <yfxie@me.com>2019-04-20 18:05:58 +0800
commit6be1446fc7f4b159097533562920662b85155113 (patch)
tree66f89efe301dafd670527624794ca18fd4f8502c /activestorage/app
parent96cf7e0e676c54cb8177de146efa27ed49c4b8c6 (diff)
downloadrails-6be1446fc7f4b159097533562920662b85155113.tar.gz
rails-6be1446fc7f4b159097533562920662b85155113.tar.bz2
rails-6be1446fc7f4b159097533562920662b85155113.zip
normalize the hash of transformations
Diffstat (limited to 'activestorage/app')
-rw-r--r--activestorage/app/models/active_storage/variation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/app/models/active_storage/variation.rb b/activestorage/app/models/active_storage/variation.rb
index 41b5a45f53..45ae71e0ca 100644
--- a/activestorage/app/models/active_storage/variation.rb
+++ b/activestorage/app/models/active_storage/variation.rb
@@ -40,7 +40,7 @@ class ActiveStorage::Variation
end
def initialize(transformations)
- @transformations = transformations
+ @transformations = transformations.deep_symbolize_keys
end
# Accepts a File object, performs the +transformations+ against it, and