aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/models/active_storage/variation.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2019-04-21 16:07:54 -0400
committerGitHub <noreply@github.com>2019-04-21 16:07:54 -0400
commita89e9cccb21acb9181ee71cb57439e82587ba579 (patch)
treebcdd5f70d1a65cc0f99cb150e4d908b312f0e4c1 /activestorage/app/models/active_storage/variation.rb
parent142a8b97ef4619cb991666fec86db5d387443ffc (diff)
parent6be1446fc7f4b159097533562920662b85155113 (diff)
downloadrails-a89e9cccb21acb9181ee71cb57439e82587ba579.tar.gz
rails-a89e9cccb21acb9181ee71cb57439e82587ba579.tar.bz2
rails-a89e9cccb21acb9181ee71cb57439e82587ba579.zip
Merge pull request #36045 from yfxie/fix-normalize-the-hash-of-transformations
ActiveStorage - normalize the hash of transformations
Diffstat (limited to 'activestorage/app/models/active_storage/variation.rb')
-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