aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2018-02-01 10:02:15 -0500
committerGitHub <noreply@github.com>2018-02-01 10:02:15 -0500
commitf687183c300f766508c09cf81e6ac20fab00b0bd (patch)
tree13b6d732716a8e62536b731be4dea5509a87d1ca
parent3ab6cbcfc0847302b5ab63ed207587248700db96 (diff)
parenteafe2c16cdd934b95a55adeccde5e7279b80b329 (diff)
downloadrails-f687183c300f766508c09cf81e6ac20fab00b0bd.tar.gz
rails-f687183c300f766508c09cf81e6ac20fab00b0bd.tar.bz2
rails-f687183c300f766508c09cf81e6ac20fab00b0bd.zip
Merge pull request #31855 from renchap/fix-activestorage-json-coder
ActiveStorage: use the full class name for the JSON coder
-rw-r--r--activestorage/app/models/active_storage/blob.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/app/models/active_storage/blob.rb b/activestorage/app/models/active_storage/blob.rb
index 7067c58259..6112c57cc0 100644
--- a/activestorage/app/models/active_storage/blob.rb
+++ b/activestorage/app/models/active_storage/blob.rb
@@ -19,7 +19,7 @@ class ActiveStorage::Blob < ActiveRecord::Base
self.table_name = "active_storage_blobs"
has_secure_token :key
- store :metadata, accessors: [ :analyzed, :identified ], coder: JSON
+ store :metadata, accessors: [ :analyzed, :identified ], coder: ActiveRecord::Coders::JSON
class_attribute :service