diff options
author | George Claghorn <george.claghorn@gmail.com> | 2018-02-01 10:02:15 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-01 10:02:15 -0500 |
commit | f687183c300f766508c09cf81e6ac20fab00b0bd (patch) | |
tree | 13b6d732716a8e62536b731be4dea5509a87d1ca /activestorage/app | |
parent | 3ab6cbcfc0847302b5ab63ed207587248700db96 (diff) | |
parent | eafe2c16cdd934b95a55adeccde5e7279b80b329 (diff) | |
download | rails-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
Diffstat (limited to 'activestorage/app')
-rw-r--r-- | activestorage/app/models/active_storage/blob.rb | 2 |
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 |