1
0
Fork 0
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:
Dino Maric 2017-08-10 20:02:29 +02:00 committed by Rafael França
parent 3ffc77a9fb
commit a3f7407e7c
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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