Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Isolate ActiveStorage namespaces #30095

Merged
merged 2 commits into from
Aug 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions activestorage/lib/active_storage/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

module ActiveStorage
class Engine < Rails::Engine # :nodoc:
isolate_namespace ActiveStorage

config.active_storage = ActiveSupport::OrderedOptions.new

config.eager_load_namespaces << ActiveStorage
Expand Down
2 changes: 1 addition & 1 deletion activestorage/lib/tasks/activestorage.rake
Original file line number Diff line number Diff line change
@@ -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