aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-01-31 16:50:30 -0500
committerGeorge Claghorn <george@basecamp.com>2018-01-31 16:50:30 -0500
commit57cc6f40309f919dfb30fe63f6d663f6ccaf7856 (patch)
tree23a605d074d6d44b8af4049654f6414dc9ffd7a5 /activestorage/lib
parentf9b806eaa18c7bdaedb36a073a450f5fa6417d2e (diff)
downloadrails-57cc6f40309f919dfb30fe63f6d663f6ccaf7856.tar.gz
rails-57cc6f40309f919dfb30fe63f6d663f6ccaf7856.tar.bz2
rails-57cc6f40309f919dfb30fe63f6d663f6ccaf7856.zip
Correct orientation detection
Diffstat (limited to 'activestorage/lib')
-rw-r--r--activestorage/lib/active_storage/analyzer/image_analyzer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/lib/active_storage/analyzer/image_analyzer.rb b/activestorage/lib/active_storage/analyzer/image_analyzer.rb
index 7342178eff..3b39de91be 100644
--- a/activestorage/lib/active_storage/analyzer/image_analyzer.rb
+++ b/activestorage/lib/active_storage/analyzer/image_analyzer.rb
@@ -39,7 +39,7 @@ module ActiveStorage
end
def rotated_image?(image)
- %w[ RightTop LeftBottom ].include?(image["orientation"])
+ %w[ RightTop LeftBottom ].include?(image["%[orientation]"])
end
end
end