Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JSON-encoding ActiveStorage::Filename
ActiveStorage::Filename was missing quotes when encoded, generating invalid json like this - ``` JSON.generate(foo: ActiveStorage::Filename.new("bar.pdf") # => '{"foo":bar.pdf}' ``` Delete to_json and rely on the implementation from ActiveSupport::ToJsonWithActiveSupportEncoder
- Loading branch information
1 parent
6b2a9f1
commit 54d3934
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters