Skip to content

Commit

Permalink
Remove deprecated ActiveStorage monkey-patching
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Aug 16, 2024
1 parent f01f592 commit a1756b0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 59 deletions.
10 changes: 0 additions & 10 deletions lib/active_storage/as_download_patch.rb

This file was deleted.

42 changes: 0 additions & 42 deletions lib/active_storage/downloader.rb

This file was deleted.

7 changes: 0 additions & 7 deletions lib/active_storage/migration.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
require 'active_storage/as_download_patch'

module ActiveStorage
class Migration

def initialize
ActiveStorage::Blob.send(:include, ActiveStorage::AsDownloadPatch)
end

def migrate(from, to)
config_file = Pathname.new(Rails.root.join('config/storage.yml'))
configs = YAML.load(ERB.new(config_file.read).result) || {}
Expand Down

0 comments on commit a1756b0

Please sign in to comment.