提交 eafe2c16 编写于 作者: R Renaud Chaput

Use the full class name for the JSON coder, as there may be another

`JSON` constant defined.

For example when using the `representable` gem: https://github.com/trailblazer/representable/issues/224
上级 4f0eb1cc
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册