mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Isolate ActiveStorage namespaces (#30095)
* Isolate ActiveStorage namespaces * Rename migrations task [Rafael Mendonça França + Dino Maric]
This commit is contained in:
parent
3ffc77a9fb
commit
a3f7407e7c
2 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@ require "active_storage"
|
|||
|
||||
module ActiveStorage
|
||||
class Engine < Rails::Engine # :nodoc:
|
||||
isolate_namespace ActiveStorage
|
||||
|
||||
config.active_storage = ActiveSupport::OrderedOptions.new
|
||||
|
||||
config.eager_load_namespaces << ActiveStorage
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
namespace :activestorage do
|
||||
desc "Copy over the migration needed to the application"
|
||||
task install: :environment do
|
||||
Rake::Task["active_storage_engine:install:migrations"].invoke
|
||||
Rake::Task["active_storage:install:migrations"].invoke
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue